What are the differences between multitasking and multiprogramming? |
Answer
Task is defined as a system program which consumes very less system resources(memory, cpu time, HD etc..).
A task should have periodic activity and event based activity.
Assume a printer which takes 10msec to print each line and you have fired a job to the printer.So the CPU should send every line with a 10msec gap. But transmitting a line to the printer is an output operation, which means the CPU has to execute some instrucions inorder to transmit a line to the printer.
Assume that the CPU takes 2usec to execute this. So this 2us is nothing but a sysem resource. So this is called as task since it is making less usage of system resource and it is periodic(every 10msec it has to execute instructions) and it is also event based(it has to check whether the printer is ON/OFF)
Dos: Mutlitasking (can do printing and scanning simultaneously) but not multi programming(it can execute only one c/c++/java etc program in memory)
Unix: Multiprograming and hence multi tasking.
|
|
|
First answer by Hari007s. Last edit by Hari007s. Contributor trust: 49 [recommend contributor]. Question popularity: 67 [recommend question]
|
Research your answer: |
Can you answer other questions about programming?
|
|


