On Jun 24,  1:56pm, charles.cui1...@gmail.com (Charles Cui) wrote:
-- Subject: Re: _SC_SIGQUEUE_MAX

| Hi Christos,
| 
|    This test generates a deadlock. t1 holds resource m1 and waits for m2,
| t2 holds resource m2 and waits for m1.
| Is this the result that you want to generate?

That is correct. It should get a deadlock. And it is the wrong test.
Perhaps we can do it with a 3rd thread like it is described here:

https://en.wikipedia.org/wiki/Priority_inversion

christos

Reply via email to