India Forums  

Go Back   India Forums > Forum Index > Technology > Programming

Messages

Programming Ask your question related to computer programming, programming languages, tutorials and programming for beginners.


Welcome to India Forums from Digital Bhoomi!

You are currently viewing our forums as a guest. By joining our free community you will have access to post topics/threads, participate in Forum Contests (Win $50!), Earn Points, communicate privately with other members (PM), respond to polls, upload content and access many other great features. Registration is super fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please refer our Help section or Contact us. Please also read How to use this forum.
Reply
 
Thread Tools Display Modes
Old 18-01-10, 07:43 PM   #1
MythiliK
Wizard
 
MythiliK's Avatar



 
Join Date: Feb 2009
Location: Basel
Posts: 1,036
Default Do you know the difference between Multitasking, multiprogramming, multithreading and

Do you know the difference between Multitasking, Multiprogramming, Multithreading and Multiprocessing?

This is what I understood. Would like to hear from others, if wrong (if not wrong also)

Though these words are used as synonym of each others by few tech people, they are not the same. They do overlap on each other, but cannot be the same.

Multiprogramming

The operating system can run MORE than one program. It divides the use of CPU among the programs on time sharing basis.

For example, let us say there are two programs waiting in the pool to be executed by the CPU. So, the OS picks the first program and executes. If the program has some I/O (which means input/output) operations involved, then it puts this program in the queue and picks the second program and executes, meanwhile the first program receiving its input.

Since the working of OS and CPU will be fast, it looks as if both the programs are executed simultaneously.

Multitasking

It is considered as the extension of multiprogramming. Here, the computer can perform more than one task.

For example, let us say you are printing a documet of 100 pages. While your computer is performing that, you still can do other jobs like typing a new document. So, more than one task is performed.

One of the main differences between multiprogramming and multitasking is, "In multiprogramming, a user cannot interact (everything is decided by OS, like picking the next program and sharing on time basis, etc...) where as in multitasking, a user can interact with the system (you can type a letter, while the other task of printing is going on)"

Multiprocessing

There will be more than one processor. So, a single program can be divided into pieces (like modules) and can be processed by the multi processors or sometimes, each processor can handle individual programs. (i.e If you have multiprocessing system, then it can either do multiprogramming as well as multitasking as well as multithreading). In Multiprocessing, each process will has its own system resources.

Multithreading

This type of programming helps when more than one client uses it. For example, let us take our DB. While I'm typing this post, there would be someone else, doing the same type of job. If DB is not having a multithread option, then not more than one person will be able to do the same job.

It will look like multiprocessing, that is a single program processed by more than one processor. But in multithreading, there is not a must that there should be several processors with individual resources, which actually increases the overhead of operating system to start/stop the resources everytime.

So here, a single program is divided into threads (which is a lightweight program). Then the part which is accessed by more than one client (for eg "Reply" and typing post in DB) alone will be executed as threads (making duplicates for each client), instead of running the whole program. Once when the purpose is solved, the thread will be deleted.
MythiliK is offline Report Post   Reply With Quote
Old 18-01-10, 07:51 PM   #2
karan
Banned
 
Join Date: Jan 2010
Location: surat
Posts: 102
Default

These four word "Multitasking, Multiprogramming, Multithreading and Multiprocessing" has similarity of working at once,but they are different because of their use..
Mulitasking works as doing mulitple task...

Multiprogramming works as doing multiple programming...
Multithreading works as opening multiple thread at once...

and

Multiprocessing works as multiple processing at once

So conclusion is working of four word "Multitasking, Multiprogramming, Multithreading and Multiprocessing" is different,but doing multiple at once make same...
karan is offline Report Post   Reply With Quote
The Following User Says Thank You to karan For This Useful Post:
MythiliK (18-01-10)
Old 20-01-10, 06:44 PM   #3
MythiliK
Wizard
 
MythiliK's Avatar



 
Join Date: Feb 2009
Location: Basel
Posts: 1,036
Default

Quote:
Originally Posted by karan View Post
So conclusion is working of four word "Multitasking, Multiprogramming, Multithreading and Multiprocessing" is different,but doing multiple at once make same...
So Karan, you found a common thing out of four different tasks Good Job...
MythiliK is offline Report Post   Reply With Quote
Old 20-01-10, 07:08 PM   #4
karan
Banned
 
Join Date: Jan 2010
Location: surat
Posts: 102
Default

Quote:
Originally Posted by MythiliK View Post
So Karan, you found a common thing out of four different tasks Good Job...
Thanks for feedback on my post...
I always find the multitasking in different OS and friend computers..
karan is offline Report Post   Reply With Quote
Old 05-06-10, 04:13 PM   #5
anitha chowdary
Banned
 
Join Date: Apr 2010
Posts: 329
Default Multiple

Multitasking: The ability to execute more than one task at the same time
Multiprogramming: The allocation of a computer system and its resources to more than one concurrent application, job or user
Multithreading: Executing more than one thread parallely using a single processor
Multiprocessing: Simultaneous execution of instructions by multiple processors within a single computer
anitha chowdary is offline Report Post   Reply With Quote
Old 22-06-10, 11:42 AM   #6
sjohn123
New Member
 
Join Date: Jun 2010
Location: sjohn123
Posts: 3
Default

Well this four word seems very similar but they are different form each other. You can find the exact meaning from above post. Great job and keep sharing useful information with us.
sjohn123 is offline Report Post   Reply With Quote
Reply

Share this page with your friends

Tags
multiprocessing, multiprogramming, multitasking, multithreading

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What Is Multithreading? mariatamis Programming 32 04-08-12 12:27 PM
Difference between VB and .Net? techkriti Programming 6 16-02-11 11:39 PM
make a difference jyothi_pv1 Your Voice / Community Center 4 14-05-10 11:27 AM
Will an Afghan run-off make a difference? NewsPoster News 0 21-10-09 07:59 PM
What consuming multiple media says about skills at multitasking NewsPoster News 0 25-08-09 10:19 AM


All times are GMT +5.5. The time now is 10:25 AM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.