Distinguish among Multiprocessing, Multithreading, Multitasking and Multiprogramming. How do you ensure that N thread can access N resources without deadlock?
a.
Multiprocessing is where a computer uses more than one cpu at a time.
Multithreading is an extension of multitasking
Multitasking involves sharing a common resource such as cpu.
Multiprogramming is where a computer can run one or more program at the same time.
b.
By imposing an ordering on the locks.
Comments
Leave a comment