×

Loading...

I think the type of "n" in ...

old (HH)
I think the type of "n" in your Thread1 should be unsigned or add some codes to limit its increasement (n++) in case it becomes negative,
and the shared memory should be synchronized. I am not very sure if it is no problem in practice of this specific implementation to access the shared memory without synchronization.
(#89012@0)
2001-6-3 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: Computer Jobs need true skills----see these assignments, please

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论