LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-16-2009, 04:59 AM   #1
Kolesar
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
ResumeThread on POSIX


Hi all

How i can create thread in SUSPENDED mode, and resume it when i want.

I have win code with CreateThread (parameter CREATE_SUSPEND), and Resume Thread, but on POSIX with pthread i cant do it.

Please help me.
Best regards
// Kolesar
 
Old 02-16-2009, 05:35 AM   #2
dialga86
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
I dont think there is a pthread_suspend and pthread_resume methods in POSIX standard. What you can try is have conditional wait on some event on which your pthread will wait and create a illusion of the thread being suspended. Just an Idea...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Posix Programming furakayro Programming 1 09-10-2008 12:20 AM
About POSIX timer scanner Programming 5 04-26-2007 03:37 AM
Help with a POSIX Program aceman817 Programming 21 02-01-2006 05:26 PM
Posix arunshivanandan General 1 05-19-2003 08:07 AM
Posix? justiceisblind Linux - Newbie 2 03-11-2002 08:04 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration