Search Results

Search: Posts Made By: tb75
4,110
Posted By tb75
Schedule Real time threads
I want to set the priority and the scheduler as SCHED_FIFO for two threads . I want to see that the thread with high priority will run forever .
A simple code is given below . But both the threads...
Forum: Programming 04-04-2007
10,904
Posted By tb75
Forking twice to avoid zombies.
May try the following

if (fork() == 0) //Child of the main code
{
if (fork()> 0) //Another process is created.(Grandchild)
exit(0); //1st child(ret val of fork >0) exits making the...
Forum: Programming 03-19-2007
7,048
Posted By tb75
Try with read ( Unbuffered I/O )
The file is available to both the processes after the fork call.
So most likely one of the process reads the file & the file offset is
updated , and the other process gets an EOF .
So only one...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy