Jump to content

How does Multitasking work?

Featured Replies

I am not meaning multi-window appz. i mean real multitasking...

 

how does the OS manage to let the programs have the control of the machine; having them all active; and pushin and poping the values of the pointers (ip,di,si...) from the stack, and manage to regain control when one of those programs get frozen...

Multi-programming OS allocate a certain portion of current memory to each running program (each portion is called a 'page'), each page is swapped into and out of main memory, executed and allocated to RAM. If you happen to experiance (a regular occurance with 3D studio max and my computer *sigh*) a freeze, the processor clock is still in sync and can still recieve interrupt commands from the control bus, such as you pressing the enter key on the cntrl + alt + del screen to end task....a packet is sent and 'IF no REPLY THEN accept interrupt' and cancel / swap the 'page' .... that's it in basic terms well at least I think, hard to remember back to module 2 in the first year of college :). Also it depends on what type of system it is - Real time, batch, networked as to the way it works some don't have fetch - execute cycle / stored program concept values so they work differently.

  • 1 month later...

multitask programs are given the priority levels in java and the time for abou how much seconds or miliseconds to pause this function and in the mean time the other one is resumed but remember once removed the other task will take its time according to the priority then it will stop in this way you can make many functions stop one resume other.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.