×

Loading...

it's better to replace sleep() by singlelock. for putvalue: inputlock[in].lock;value[in] = i;ouputlock[in].unlock;in=(in+1)%QUEUESIZE. for getvalue: outputlock[out].lock;result = value[out];inputlock[out].unlock;out=(out+1)%QUEUESIZE.

scorpio (scorpio)
(#89008@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技术讨论