Re: temporary disable thread switching using pthreads
- From: davids@xxxxxxxxxxxxx
- Date: 23 May 2006 16:58:52 -0700
That's not quite I mean. What I mean is this:
1) Thread A requests exclusivity.
2) Thread B is at a safe point, and stops, waiting for A to release it.
3) Thread C is not at a safe point and is still running, but it needs
thread B to do something before it can continue. (For example, it's
trying to put some data on a queue but the queue is full and thread B's
job is to service the queue. There are many other examples.)
4) Thread A cannot proceed until thread C hits a safe point. Thread C
cannot proceed until thread B makes forward progress. Thread B is
stopped until thread A proceeds.
To make the exclusivity system work, you must detect such a deadlock
and release all threads only to start over.
DS
.
- References:
- temporary disable thread switching using pthreads
- From: Marcel Müller
- Re: temporary disable thread switching using pthreads
- From: David Hopwood
- Re: temporary disable thread switching using pthreads
- From: Marcel Müller
- Re: temporary disable thread switching using pthreads
- From: Joe Seigh
- Re: temporary disable thread switching using pthreads
- From: Marcel Müller
- Re: temporary disable thread switching using pthreads
- From: davids
- Re: temporary disable thread switching using pthreads
- From: Jedrzej Dudkiewicz
- temporary disable thread switching using pthreads
- Prev by Date: Re: temporary disable thread switching using pthreads
- Next by Date: Re: temporary disable thread switching using pthreads
- Previous by thread: Re: temporary disable thread switching using pthreads
- Next by thread: Re: temporary disable thread switching using pthreads
- Index(es):
Relevant Pages
|