Multi tasking, programming and time sharing are variations of the same thing.
Single tasking is a system where once a programme starts, no other programme can run until it has ended. Eg early home computers, you loaded a prog. ran it then moved on to the next prog.
Multi tasking/programming/ time sharing is where several progs are running at the same time, but only 1 prog is actually being worked on at any moment in time. The system will share its time between progs that need some action, but always only 1 prog at a time. If a prog needs data from disk/ram it will wait for the data to arrive. This time is used to work on other progs that already have the data needed. The earliest versions of this merely "time sliced" or shared equally between progs whether they needed time or not.
Multi processing is where you have, for example, 2 processors that allows work to be done on 2 progs at the same time. Big servers start at 32 processors and go up from there.
Lets say that you need to add 2 numbers, the hardware sequence runs something like
Fetch the instruction
Decode it
fetch the 1st number from memory store in a register
fetch the 2nd number etc etc
add the 2 numbers and store the result in another register.
Multi threading allows several parts of the program to be processed without waiting for the first instruction to finish.
In the above example, each step is undertaken by a different part of the hardware, so when our instruction above has been fetched, it goes away and fetches the next instruction, so all the steps of instructions are working their way through a "pipeline". Modern processors have multi pipelines to make things even quicker. This is why some processors with a lower clock speed can out perform other CPUs. This effectively simulates multiprocessing as different progs can be in different pipelines (hyperthreading).
It is not unusual to have multiple processors, with multiple pipelines working on 1 prog. Usually something like weather forcasting where lots of similar data from many sources needs manipulating.
2007-09-14 00:39:48
·
answer #1
·
answered by terryrow 2
·
0⤊
0⤋
Multi-tasking, multi-threading and multi-processing, all refer to the same method of carrying out two or more jobs simultaneously on a computer. Multi-programming encompasses these three methods and Time sharing is the mode by which the computer handles the traffic of the multiple jobs which are being handled.
2007-09-14 00:04:10
·
answer #2
·
answered by Realest Baller 2
·
0⤊
0⤋
when u said multi u can do 2 or more task
2007-09-13 23:15:34
·
answer #3
·
answered by nica 2
·
0⤊
0⤋
1.basically, multitasking means performing more than one function at the same time.(eg. using timer control in VB6). 2.multiprogramming means coding two different programs into a single output.(eg. using html to use multi applets) 3. multithreading is mainly used as a technology in computer processor like hyperthreading(eg. in Intel P4)
2016-05-19 02:21:35
·
answer #4
·
answered by ? 3
·
0⤊
0⤋
Multithreading And Multiprocessing
2016-12-16 11:39:27
·
answer #5
·
answered by agostino 4
·
0⤊
0⤋