answersLogoWhite

0

The primary purpose of multiprocessing is to allow more than one process to run, or to appear to run, at the same time. This allows more work to be done more quickly, because one process can be running while another is waiting on something else, so it allows the CPU to be more efficiently utilized. Multiprocessing is an architecture that allows the concept of multiple processes, each lined up to compete for execution by the CPU. The operating system manages the dispatching of each process according to a priority scheme. Processes can be ready, which means the OS can dispatch them to run, or they can be blocked, which means they are unable to be dispatched because they are waiting on some event, such as IO completion, keyboard entry, another process, something. Done correctly, which most modern OS's do very well, it will seem that you can run multiple processes at the same time. If there is only one CPU, then only one process can be running, or dispatched, at any one time. Still, the appearance of concurrent execution will exist. If there is more than one CPU, such as in a dual or quad core processor, then the OS is able to dispatch more than one process at the same time. This is true parallel execution. In modern OS's, the concept of threading exists. Processes and threads are somewhat similar. While different OS's have different terms for processes and threads, it is general convention that a process is an address space supporting a program, with one or more threads running within it. Threads, on the other hand, are what the OS actually manages in term of dispatchability. A thread, then, is an execution path through a process. You can write a program that has only one thread, and the OS will handle it accordingly. If you have several "things" to do within that program, you are responsible for the dispatching of those "things". Well, those "things" can be threads. You can write code that initiates additional threads within your process, each designed to handle one "thing". You then turn dispatch management over to the OS, and you have now written a multi-threaded application. Whether we call them threads or processes or something else, the issue of thread safety is paramount. Thread safety is the ability of a thread to properly access and potentially modify a data structure that is shared between threads (or processes) without creating corruption of data. Various kinds of interlocking mechanisms exist to handle this - it is a big topic, and one that requires great care in its design.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How does an operating system create an illusion of multiprocessing?

Multiprocessing means multiple processes are running at the same time but actually it the processor is so frequent it seems like that we are running two or more processes at the same time ... second thing is that ::The term multiprocessing is also referred as ::use of multiprocessor within a computer system.


What is ASymmetric Multiprocessing?

Multiprocessing refers to a computer system's ability to support more than one process (program) at the same time. Multiprocessing operating systems enable several programs to run concurrently. UNIX is one of the most widely used multiprocessing systems, but there are many others, including OS/2 for high-end PCs. Multiprocessing systems are much more complicated than single-process systems because the operating system must allocate resources to competing processes in a reasonable manne


Which operating system has a multiprocessing operating system?

These days, all of them.


Is Linux multiprocessing and multitasking operating system?

yes


When would you use a Linux multiprocessing system?

When you are using a computer with multiple processors. This is common in servers and workstations, and increasingly common in home desktop computers as well.


When creating a computer program who is design the structure of the program in a computer system?

when creating a computer program, system analyst design the structure of the program


Advantages of multiprocessor system?

Advantages include: increase throughput, economy of scale and increased reliability. Multiprocessing is the use of two or more central processing units within a single computer system.


What is the purpose of a monitor in a computer system?

The purpose of a monitor in a computer system is to display visual information and output from the computer, allowing users to see and interact with the data and applications running on the computer.


What purpose you used computer in banking system?

purpose of internet banking


What is the purpose of the case opening trim in a computer system?

The purpose of the case opening trim in a computer system is to provide easy access to the internal components of the computer for maintenance, upgrades, and repairs.


What is dynix ptx?

A Unix-based operating system from Sequent Computer that ran on its Symmetry series of x86 symmetric multiprocessing (SMP) servers. IBM acquired Sequent in 1999.


Is this UNIX system is multiprocessing system?

no Actually, it is. Unix has multi-processing and multi-tasking capabilities.