Escolar Documentos
Profissional Documentos
Cultura Documentos
JENIS TUGASAN :
INDIVIDU
TAJUK :
TUTORIAL 3
DISEDIAKAN OLEH:
NO. MATRIK:
E20171018843
NAMA PENSYARAH :
____Multitasking_______________.
The child has exceeded its usage of some of the resources that it has been allocated.
(To determine whether this has occurred, the parent must have a mechanism to inspect
3. In a computer, there are two ways a process may appear either independent or
process that does not share data with any other process is independent
Cooperating process
if it can affect or be affected by the other processes executing in the system. Clearly,
any process that shares data with other processes is a cooperating process.
interprocess communication (IPC) mechanism that will allow them to exchange data
exchange information by reading and writing data to the shared region. In the
helps a programmer organize the activities among different processes. IPC allows one
interference.
and other methods to share memory and information. IPC facilitates efficient message
transfer between processes. The idea of IPC is based on Task Control Architecture
(TCA). It is a flexible technique that can send and receive variable length arrays, data
structures, and lists. It has the capability of using publish/subscribe and client/server
languages.
with one another to transfer information. Messages can be exchanged between the
processes either directly or indirectly through a common mail box. Message passing is
useful for exchanging smaller amounts of data, because no conflicts need be avoided.
communication. But the main disadvantage is it can handle only small amounts of
data.
Shared-Memory model : In this, processes use shared memory creates and shared
memory attaches system calls to create and gain access to regions of memory owned
by other processes. Two or more processes can exchange information by reading and
writing data in the shared areas. Shared memory allows maximum speed and
place within a computer Problems exist, however, in the areas of protection and
and writing data in the shared memory. Explain how cooperating process is
consumer may have to wait for new items, but the producer can always produce new
items. The bounded buffer assumes a xed buffer size. In this case, the consumer
must wait if the buffer is empty, and the producer must wait if the buffer is full.
synchronize their actions without sharing the same address space. It is particularly useful
messages.