Task is defined as a system program which consumes very less system resources(memory, CPU time, HD etc..).
A task should have periodic activity and event based activity.
Assume a printer which takes 10msec to print each line and you have fired a job to the printer.So the CPU should send every line with a 10msec gap. But transmitting a line to the printer is an output operation, which means the CPU has to execute some instrucions in order to transmit a line to the printer.
Assume that the CPU takes 2usec to execute this. So this 2us is nothing but a sysem resource. So this is called as task since it is making less usage of system resource and it is periodic(every 10msec it has to execute instructions) and it is also event based(it has to check whether the printer is ON/OFF)
Dos: Mutlitasking (can do printing and scanning simultaneously) but not multi programming(it can execute only one c/c++/java etc program in memory)
Unix: Multiprograming and hence multi tasking.
AnswerMultitasking and Multiprogramming:In multiprogramming, more than one program lies in the memory i.e. in terms of operating system, the schedular selects the jobs to be placed in ready queue from a number of programs. The ready queue is placed in memory and the existence of more than one program in main memory is known as multiprogramming.
Example of multiprogramming, we open word, excel, access and other applications together but while we type in word other applications such as excel and access are just present in main memory but they are not performing any task or work. Or we can say that are not being used at the same time.
Whereas multitasking means performing multiple tasks in parallel. Usually, CPU processes only one task at a time but the switching of CPU between the processes (also known as Context Switching) is so fast that it looks like CPU(or processor) is executing multiple processes at a time.
Example of multitasking, we listen to music and do internet browsing at the same time (they execute parallely).
Also a task (or process) is a part of program under execution. In other words, task is an active entity where as program is passive entity.
In Multiprogramming it is possible to run several programs at same time rather than one at a time in uniprogramming.. and higher resource utilization.
MultiTasking:In MultiTasking operating system, several jobs are executed in parallel by the operating system, through multiple processors (or) CPUs only.Like .CPU1: Job-ACPU2: Job-BCPU3: Job-CMultiprogramming :The method of Multiprogramming systems comes in the 1960s. In that process several different programs in batch were loaded in the computer memory, and the first one began to run. One program after another executed when the first program reached an instruction waiting for a device that has a message, the context of this program was stored away, and the second program in memory was given a chance to run. The process continued until all programs finished running.By : er.karthikchawda@gmail.com
the differences are that they have different names
weewwqew
Reasoning is actively analyzing. Remembering is simply making a mental record.
multiprogramming
timesharing is logical extention of multiprogramming.
Multitasking: The ability to execute more than one task at the same time is called multitasking. It involves only one CPU. Multiprogramming: The ability to execute more than one task but not simultaneously is called multiprogramming.
First of all there is difference between program and a task. There may be multiple tasks running related to one program at the same time. so if the processor is busy in multiple tasks related to one program then it is multitasking. But if the multiple tasks which the processor is executing concurrently are related to different independent programs then the concept is know as multiprogramming.
MULTIPROGRAMING .................. The term multiprograming denotes an operating system that,in addtion to supporting multitasking. In multiprograming more than one jobs are active in memory.Within a very small period more than one jobs are executed simultaneously. MULTITASKING ............... In general multiprogramming implies multitasking,but multitasking does not imply multiprogramming. A multitasking operating system is distinguished by its ability to support concurrent execution of two or more active processes. as discussed actually both multitasking and multiprogramming are same no other answer mentioned are justifiable.....
Preemptive multitasking is when the operating system preemptively interrupts a current task without cooperation. Cooperative multitasking is when the system must be programmed to do tasks.
whar are key motivation for the development of multiprogrammig,multitasking,multithreading
Not really a true statement; both Windows and UNIX have multi-tasking and multi-programming capabilities.
Multiprogramming is collecting several jobs in a job pool and the OS selects the job from the pool so that the CPU has one job to execute , in case of any IO request for the job in execution the CPU switches to another job here switching is less compared to multitasking.So a computer system which allows such type of switching in between jobs is called a multiprogramming system. Please make note that multitasking is done by user but multiprogramming is done by operating system only.
Multiprogramming System: In multiprogramming system the same memory is shared by different number of programmes. MultiUser system: More than one user can use the system at a time.There will one centralized server and the users connected with the system are called as dump terminals.
multiprogramming or multitasking means more than one program can execute at the same time. It is the allocation of a computer system and its resources to more than one application at the same time. However in uni-programming you can have only one program running at any point in time.
Cooperative multitasking is multitasking tohelp someone else, while peemative multitasking is multiaatsking for yourself.