Professional Documents
Culture Documents
Operating Systems (18EC641) Mailboxes: Shaik Arif Najeeb 1VI19EC132
Operating Systems (18EC641) Mailboxes: Shaik Arif Najeeb 1VI19EC132
(18EC641)
MAILBOXES
• The kernel may associate a fixed set of buffers with each mailbox when a
message is sent.
• kernel may provide a fixed set of mailbox names.
• Alternatively , it may permit the uses processes to create names of their choice.
• In the former case confidentiality of communication between a pair of
processes cannot be guaranteed because any process can create or connect to
any mailbox.
• This problem becomes less severe when processes can assign mailbox names
of their own choice.
MAILBOXES
• Exercise control over creation and destruction of mailboxes the kernel may
require process to explicit connect to a mailbox before starting to use it and to
disconnect after finishing its use.
• This way it can destroy a mailbox to which no process is connected.
• The kernel mein permit the owner of the mailbox destroy it, in that case the
kernel has to notify destruction of the mailbox to all the users who have
connected to it.
• So that the kernel may permit the ownership of the mailbox to be transferred to
another process
MAILBOXES
Advantages of mailboxs:
• Anonymity of receiver: A process sending a message to a mailbox need not
know identity of the receiver process. A process can take over the functionality
of another process.
• Classification of message: A process may create several mailboxes, and use
each mailbox to receive messages of specific kind. This arrangement permits
easy classification of messages.
MAILBOXES