![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| while loop inside while loop | panknil | Shell Programming and Scripting | 0 | 01-07-2008 12:49 PM |
| For Loop help | princssashes | UNIX for Dummies Questions & Answers | 2 | 11-09-2006 05:37 AM |
| Loop help | cjeffers | Shell Programming and Scripting | 4 | 06-27-2006 03:32 PM |
| do...while loop | cubs0729 | Shell Programming and Scripting | 1 | 09-26-2005 01:49 PM |
| how to get the similar function in while loop or for loop | trynew | Shell Programming and Scripting | 3 | 06-17-2002 12:09 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
while loop and CPU ..
Hello frnds..
i m using while loops in my code.. bec of that my application uses almost 90% of CPU resources.. its not lettin others applications to run.. actually i have to read some signal from serial port... n till i dont get it high or low.. i have to read that signal continuously... its for this reason i m using while loops. while(1) { status=read_CTS(); if(status==1) continue; else if(status==0) { --------- some code -------- break; } } someone suggested me to use sleep in the while loop.. i cant use it bec we are workin on realtime systems... so we usually avoid using delay n sleep.... can anyone help me on this ??? my application is on C++/fedora |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|