in threads what is preemptive multitasking? can anyone explain?
Peter den Haan
posted 15 years ago
It means that a thread will be forced to relinquish its control of the CPU so that other threads can run. Without pre-emptive multitasking, "greedy" threads may prevent other threads from running. A greedy thread is a thread that doesn't do any I/O and doesn't call yield(). - Peter [ February 28, 2002: Message edited by: Peter den Haan ]