aspose file tools
The moose likes Threads and Synchronization and the fly likes plz i need an urgent answer Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "plz i need an urgent answer" Watch "plz i need an urgent answer" New topic
Author

plz i need an urgent answer

tania khan
Greenhorn

Joined: Feb 05, 2002
Posts: 2
in threads what is preemptive multitasking? can anyone explain?
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
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 ]
 
 
subject: plz i need an urgent answer
 
MyEclipse, The Clear Choice