Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 890
  • Last Modified:

quantium interrupts

one reason for using a quantium to interrupt a running process is after a reasonable period of time is to allow the operating system to dispatch the next process suppose the system does not have an interrupt clock and that the only way a process can loose the process is to relinquish it voluntairly.suppose that no dispatch mechanism is provided in the operating system describe how a group of user processes could cooperate among themselves to effect a user controlled dispatching mechanism what potential dangers would be inherent in this scheme?what are the advantages to the user over a system controlled
dispatching mechanism
0
delltrotter
Asked:
delltrotter
1 Solution
 
davidmwilliamsCommented:
This is clearly some sort of assignment.
User processes could cooperate among themselves, to voluntarily relinquish the CPU every now and then (i.e. after every so many operations, or by setting an internal timer). Perhaps, by using inter-process communication, the processes could determine a 'chain' of execution, and then pass control on to the next process in line, and so on.
However, you really want pre-emptive multitasking and time-slicing, because what if one program crashed - or went into an infinite loop - or for some reason never relinquished control, or did so only infrequently -- or became deadlocked, because it was waiting for a resource that another process had ?  Of course, the other process can never release the resource if it can't run ...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now