The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Please Help me with this ..High Priority! balaji_gopal Shell Programming and Scripting 0 05-28-2008 12:14 PM
the given code goes in infinite loop and does not increment variable i mrityunjay22 Shell Programming and Scripting 6 12-25-2007 11:20 PM
pick the bug the server enters an infinite loop arjunjag High Level Programming 3 07-18-2007 10:53 PM
ls command in infinite Loop umakant SUN Solaris 3 07-16-2007 10:25 PM
need help: how to send email with HIGH priority in shell scripts? _joshua_ Shell Programming and Scripting 2 03-12-2007 10:34 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-14-2007
Registered User
 

Join Date: Jan 2007
Posts: 30
high priority thread contains an infinite loop

Hi,

Assume there are 3 threads N1, N2, N3.

in N1
{

....
while(1)
{

}
}

when the thread N1 got the time slice, it started executing the infinite loop..
Note:there is no condition inside the while(1) to end the infinite loop
I heard that some RTOS will solve this problem helping the thread to come out the loop.
If so, what is the logic behind that? and where exactly it will be used.
Can anyone comment on this?

Thanks
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0