linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to suspend a thread (without pthread)
@ 2005-05-25  6:11 SVisor
  2005-05-25  6:23 ` Ron Michael Khu
  0 siblings, 1 reply; 3+ messages in thread
From: SVisor @ 2005-05-25  6:11 UTC (permalink / raw)
  To: linux-c-programming

As subject says,

I need to suspend threads (for locking purpose) but I do not want to use 
Posix threads library (pthread). Neither do I want to access __KERNEL__ 
protected parts of the kernel API.

There must be a user accesible API for this. The nearest Ive found is 
sched_yield( ), but it just moves a thread (process) to the end of 
run-queue.

// Jarmo


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-25  6:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-25  6:11 How to suspend a thread (without pthread) SVisor
2005-05-25  6:23 ` Ron Michael Khu
2005-05-25  6:47   ` SVisor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).