home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.misc
- Path: sparky!uunet!news.smith.edu!sophia.smith.edu!jfieber
- From: jfieber@sophia.smith.edu (John Fieber)
- Subject: Re: Multitasking/Multithreading
- Message-ID: <1992Nov18.042843.14668@sophia.smith.edu>
- Keywords: multitasking, multithreading, flame wars
- Sender: root@sophia.smith.edu (Operator)
- Organization: Smith College
- References: <1992Nov17.171917.12024@bsu-ucs>
- Date: Wed, 18 Nov 1992 04:28:43 GMT
- Lines: 50
-
- In article <1992Nov17.171917.12024@bsu-ucs> 00llhamilton@leo.bsuvc.bsu.edu writes:
- >you out there in "Wonderland". I want to know the difference between
- >"multitasking" and "multithreading". These terms are somewhat confusing
- >to me, so could someone explain them better?
-
- In a nutshell, this is my understanding:
-
-
- The two terms are similar but with some subtle distinctions.
- Multitasking usually refers to a computer system's ability to run
- multiple independant programs simultaneously on the same piece of
- hardware in such a way that no one program has to be particularly
- aware of any of the others.
-
- Multithreading usually refers to program code that explicitly
- takes advantage of a multitasking environment for its operation.
- For example, in a GUI environment a program is usually event
- driven; events being mouse clicks, keystrokes, menu selections
- and such. In a multithreaded program, you might have one task
- completely devoted to collecting these events and dispatching
- appropriate tasks to handle the event. Since the environment is
- multitasking, many tasks can be spawned and all be running in
- parallel.
-
- The ways you can use multithreading and are limited only by your
- imagination. Once you get used to using and programming in a
- good multitasking system it is very hard to be satisfied with
- anything less. But, this is where the issues of "good" raises
- its ugly head; cooperative (mac, windows) vs preemptive (unix,
- os/2, windows-nt, amiga) and all the varying shades of each.
-
- To be honest, if you want to learn more about this topic, I would
- suggest you go to a university library and thumb through a good
- book on operating systems theory. In particular, read about task
- management / timesharing. Most *discussions* of multitasking
- I've seen on the net quickly degenerate into flame wars about
- "Windows is/isn't REAL multitasking because blah blah blah..." and
- very little *useful* information in presented.
-
- With a good bit of background OS theory under your belt, you can
- go out into the real world and look at all the systems that
- proclaim to be multitasking and draw your own conclusions.
-
-
- Nutshell closed.
-
- -john
- --
- === jfieber@sophia.smith.edu ================================================
- ======================================= Come up and be a kite! --K. Bush ===
-