[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
thread created and hang
- To: OpenBsd Maillist <tech@openbsd.org>
- Subject: thread created and hang
- From: Guan Zhaohui <guan.zhaohui@datawire.net>
- Date: Thu, 10 Jan 2002 11:36:17 -0500
- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1
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