Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.unix.programmer > #237
| From | Xavier Roche <xroche@free.fr.NOSPAM.invalid> |
|---|---|
| Newsgroups | comp.unix.programmer |
| Subject | Re: Is it possible to change thread scheduling with condition vars? |
| Date | 2011-04-27 18:48 +0200 |
| Organization | Nowhere Corp. |
| Message-ID | <ip9hd8$g5r$1@news.httrack.net> (permalink) |
| References | <ip8pat$ho1$1@speranza.aioe.org> |
Le 27/04/2011 11:57, boltar2003@boltar.world a écrit :
> Is it possible to select which thread may run, exclude certain threads or
> reset back to the first thread when using pthread_cond_signal() or
> cond_broadcast()? Eg if I have threads 2,3,4 waiting but don't want thread 3
> to run is this possible?
Why don't you include this condition in the condition check loop ? (ie.
while(!varNotTrue() && !notTheGoodThread()) { wait(cond, mutex); })
Back to comp.unix.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Is it possible to change thread scheduling with condition vars? boltar2003@boltar.world - 2011-04-27 09:57 +0000 Re: Is it possible to change thread scheduling with condition vars? Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-04-27 06:54 -0400 Re: Is it possible to change thread scheduling with condition vars? Xavier Roche <xroche@free.fr.NOSPAM.invalid> - 2011-04-27 18:48 +0200 Re: Is it possible to change thread scheduling with condition vars? David Schwartz <davids@webmaster.com> - 2011-04-27 14:22 -0700
csiph-web