Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/datarecoverykb.com/httpdocs/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/datarecoverykb.com/httpdocs/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/datarecoverykb.com/httpdocs/wp-includes/query.php on line 21
Data Recovery Knowledge Base » Blog Archive » Multithreading

Multithreading

Posted on February 27th, 2009.

RAID Recovery - Multithreading

Multithreading is a term associated with a program or an operating system and their ability to execute several threads of execution at one point of time, allowing its use by more than one user and also successfully managing multiple requests by the same user, allowing system to run multiple programs smoothly. Operating systems, these days, can execute up to a billion instructions of different nature. Such instructions are kept track of as a thread with a distinctive identity. As programs function on behalf of a thread specific, it is randomly interrupted by other threads requests. On a single processor, multithreading takes place by running each of the programs one by one at the interval of a few hundred micro seconds. The status of each thread is kept on track until it is finally executed. The process is so fast that to a user it is seems multiple programs running at the same point of time. However, in case of a multiprocessor system, the threads run at the same time with the help of different processors running a particular thread or task.

Multithreading: Advantages/Uses

The significance of multithreading lies in developing programming and execution models that enables multiple threads to exist within the context of a single process. The amazing part, these threads happen to share the same process resource but execute themselves independently. Such multithreaded programs with multiple CPUs enable its users to operate multiple programs quite faster. It happens because the threads involved of the program allow themselves to truly concurrent execution. However, the programmer is expected to be very careful in order to avoid race condition as well as other non-intuitive behaviour. The data, in order to manipulate efficiently and in correct order, require to rendezvous in time.

Threading is scheduled by operating systems in two ways: Pre-emptive multithreading allows the operating system to decide when a context switch to take place. On the other hand, Co-operative multithreading entirely depends on the thread themselves in order to handover the control once they are at stopping point.

Make a Comment

Make A Comment: ( None so far )

blockquote and a tags work here.

About

Recovering Your Data

RSS

Subscribe Via RSS

  • Subscribe with Bloglines
  • Add your feed to Newsburst from CNET News.com
  • Subscribe in Google Reader
  • Add to My Yahoo!
  • Subscribe in NewsGator Online
  • The latest comments to all posts in RSS
  • Subscribe in Rojo