The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Automated FTP task LowOrderBit IP Networking 36 05-04-2009 03:45 AM
process vs task hana UNIX for Dummies Questions & Answers 2 07-02-2006 06:32 PM
The time taken to complete the task redlotus72 UNIX for Dummies Questions & Answers 1 04-07-2005 05:23 AM
cron task not working cassj Shell Programming and Scripting 2 08-05-2004 04:45 PM
fetchmail suitable for this task? DraconianTimes UNIX for Dummies Questions & Answers 0 07-06-2004 08:56 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-20-2001
ramyar ramyar is offline
Registered User
  
 

Join Date: Dec 2001
Location: India
Posts: 7
difference between task and process

Hi,

what is the difference between a task and a process.

what is the difference between multitasking , multiprogrammnig and multiprocessing?

Thanks in advance
  #2 (permalink)  
Old 12-20-2001
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
"Task" and "multitasking" are terms that do not have universal definitions in the world of unix.

"Multiprogramming" means the ability to run several programs at once. We take this for granted today, but early systems could run one program at a time. Almost all computer systems today use multiprogramming, so's there's really no need for the term anymore.

"Multiprocessing" is the ability to have several cpu's in one system to distribute the load. The are still penty of uniprocessor systems out there, so this term still sees frequent use.

You didn't ask, but "multithreading" is the ability to have multiple threads in a process. For example, one thread may be reading the next block of data while another thread processes the current block of data. When I heard "multitasking" used in the non-unix world, it was referring to something close to today's multithreading.
  #3 (permalink)  
Old 12-21-2001
sskb
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
perderabo
Can I have some more on "Multithreading"?
  #4 (permalink)  
Old 12-21-2001
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
See "man pthread_create" as a starting point. There is an example on that page. There are also a lot of man pages on threads. Use "man -k pthread" to get a list.
  #5 (permalink)  
Old 12-21-2001
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,709
Try this link:

The defination I use for multiprocessing is more similar to number (1) in the link below:

http://www.webopedia.com/TERM/M/multiprocessing.html

Multiprocessing has two meanings, like terms in Websters. I tend to use the term for (1) in the link above and not (2). For (2) I tend to use the term 'multiprocessor'....... confused

Here is another link:


http://www.webopedia.com/TERM/M/multitasking.html
  #6 (permalink)  
Old 12-22-2001
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
I have gone deep into my archives to further research this question. The earliest book that I could find that uses all three terms is Operating Systems by Harry Katzan Jr published in (I'm dating myself here) 1973. The book heavily focuses on IBM operating systems since IBM dominated the market in those days.

First, the word "process" does not even get an entry in the index. Where we would use "process", this book uses "task".

In Chapter 5 Evolutionary Development of Operating System Technology, we learn that IBM first broke the "one program at a time" mold when it introduced SPOOL. You will love this quote...
Quote:
The term Spooling was derived from the acronym SPOOL (Simultaneous Peripheral Output On Line) which obviously refers to the process of computing and doing output concurrently.
But anyway Spooling was the first example of multiprogramming. The computer could run one user written task and it did something else. But the "else" was limited to spooling and few other os supplied utility programs.

Multitasking was the next step where the OS could actually run two or more user written tasks at once.

And multiprocessing is indeed two or more cpu's in one system. I too used to use multiprocessing to mean multiple processes, but I stopped when real multi-processors came along. It's kinda like the way the terms "microcode" and "firmware" got carelessly used.
  #7 (permalink)  
Old 12-22-2001
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,709
Excellent point Perderabo.... thanks for the extra research! Here is a Linux link that basically says the same thing as you are saying:

http://www.linuxguruz.org/foldoc/fol...ultiprocessing

And another one:

http://www.cbbrowne.com/info/smp.html

Thanks for the clarification!!
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0