Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-06-2011, 07:07 PM   #1
LQ Newbie
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
Suspend Function

Can anyone help me making a function "int suspend(int ThreadID)".
The thread with the specified thread ID should be moved to a suspended status. So If the thread is NOT the calling thread It should be removed from the ready list (the only place it could be if it exists and has not ended) and placed on a separate suspended list. If the calling thread is suspending itself (threadID equals current threads TID) then the current thread should be placed on the suspend list and a different ready thread should be dispatched.

please help me with just the logic here..
Old 02-06-2011, 09:22 PM   #2
Registered: Jul 2007
Location: Argentina
Distribution: Ubuntu 13.04 , Debian Lenny 5.0.7
Posts: 223

Rep: Reputation: 21
I think this is not the proper forum. You should post this in the Programming forum. You will get much more help there. Just an advice


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to suspend data transfer for multi function sd card mailtosouvik Linux - Kernel 0 10-01-2010 05:05 AM
Xfce 4.6 Suspend and Hibernate Function does not work properly with my notebook. phys Slackware 2 03-09-2009 06:46 PM
sony vgn-fz250e problems with suspend, power, function keys booy Linux - Laptop and Netbook 1 05-07-2008 01:02 PM
Toshiba A100-SK9 Suspend-Standby-Hibernate Function keys fiery_ice Linux - Laptop and Netbook 2 11-15-2006 03:20 PM
FreeNx suspend/resume function not working. bladehaze Ubuntu 1 09-14-2005 09:21 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:42 AM.

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