• Post Reply Bookmark Topic Watch Topic
  • New Topic

plz i need an urgent answer

 
tania khan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in threads what is preemptive multitasking? can anyone explain?
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!