[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

thread created and hang



Hi,

Can anybody shed some light on the following problem?

[platform] openbsd-2.9 on i386
[compiler] gcc 2.95.3
[problem]
   I have the main thead create another thread;
   inside the created thread, it first tries to
     acquire a semaphore (init value=1, operation num=0)
     consequently, it blocks there;
   the main thread is also blocked there, cannot do anything
   I expected it to do.

[Note]
   the thread is created using default attribute.

Thanks for your help!

Regards,
Joe