Re: temporary disable thread switching using pthreads
- From: "Jedrzej Dudkiewicz" <jedrzej.dudkiewicz@xxxxxxxxxxxxxxxxx>
- Date: Tue, 23 May 2006 11:06:39 +0200
For example, suppose thread X gets to a
safe place and suspends, but then thread Y gets into a situation where
it cannot progress until thread X does something, and it holds a
critical resource that the exclusive thread will need.
I suppose that by "hold" you mean "is in critical section", but if the
construction above (stopping all other threads) is the only way to protect
resources, this situation is impossible. Or so I think.
Of course it doesn't mean, that doing it's efficient or smart.
JD
.
- Follow-Ups:
- 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
- temporary disable thread switching using pthreads
- Prev by Date: Re: Error in MultiThreaded application
- 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):