Re: Terminate and Stay Resident Software (TSR) in Linux
- From: Peter Mendham <petermendham@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Nov 2006 09:41:16 +0000
Hi,
Why give a timeslice to a process waiting for input that the schedulerYour program would just wait for input. The process running yourDo you mean it is not running at all if no input comes through?
program would then not be scheduled until some input comes.
I thought every process gets at least a time slice every now and then.
Is this assumption thereby wrong?
knows has not received that input? That's just a waste of resources.
Yes, that was my idea, too. I did not know how/if it's done.
I'll get the Minix book at Christmas, so I can then read some more about the
real low-level stuff. I have read a lot, but not about everything. A good
book is worth more than a thousand web sites, I think...
Every process is marked with a state which tells the scheduler whether or not to even try scheduling it in for a time slice. One of the states is "blocking" ie. waiting for something. When that something happens (usually in another process) the state of the blocked process is changed to "run". That way, when the scheduler next comes around to considering the process, it picks up where it left off.
-- Peter
.
- References:
- Terminate and Stay Resident Software (TSR) in Linux
- From: karthikbg
- Re: Terminate and Stay Resident Software (TSR) in Linux
- From: Stephane CHAZELAS
- Re: Terminate and Stay Resident Software (TSR) in Linux
- From: Sebastian
- Re: Terminate and Stay Resident Software (TSR) in Linux
- From: Sebastian
- Terminate and Stay Resident Software (TSR) in Linux
- Prev by Date: Re: Trouble with snapgear...
- Next by Date: Re: Communication between threads of same PIDs
- Previous by thread: Re: Terminate and Stay Resident Software (TSR) in Linux
- Next by thread: Re: Terminate and Stay Resident Software (TSR) in Linux
- Index(es):
Relevant Pages
|