Home Java Thread Parallel Processing & Multitasking



Parallel Processing & Multitasking
Posted on: April 17, 2007 at 12:00 AM
In this section, you will learn about parallel processing and multitasking.

Parallel Processing & Multitasking

     

Multitasking & Multithreading

Multitasking allow to execute more than one tasks at the same time, a task being a program. In multitasking only one CPU is involved but it can switches from one program to another program so quickly that's why it gives the appearance of executing all of the programs at the same time. Multitasking allow processes (i.e. programs) to run concurrently on the program. For Example running the spreadsheet program and you are working with word processor also.
 
Multitasking is running heavyweight processes by a single OS.
  
Multithreading is running multiple lightweight processes in a single process/ task or program. For Example, When you used a word processor you performs a many different tasks such as printing, formatting text, spell checking and so on. Multithreaded software treats each process as a separate program.
  
Some advantages of multithreading over multitasking are :

  • Threads share the same address space.
      
  • Context switching between threads is usually less expensive than between processes.
     
  • Cost of communication between threads is relatively low.
     

Related Tags for Parallel Processing & Multitasking:
cmultithreadingcomuiprocesstimeioprocessescpuexecreadthreadusingssothreadingpearparallelexeappprocessingtaskcomputertasksexecuteprocessorprogramconcurrenttoexecutionramskinreadingsseprocssiearappearanceeilitmultinotcanputulpeimfromcecurrentinnoasmntoutparswitchcaadescomputeallmehrproppcutsamesxesoessatquickprocessorskishaimellivmultitaskingeaandarsasimultaneoussimutitwssamssamrocrenthswconcurrentlyabaskingaphatitaskprocesprmultithreadndonlyonomogrolonl


More Tutorials from this section

Ask Questions?    Discuss: Parallel Processing & Multitasking   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.