The document discusses several topics related to operating system processes:
- Processes can communicate through shared memory or message passing. Shared memory allows processes to access the same memory resources, while message passing involves establishing communication links and exchanging messages.
- Virtual memory allows a system to appear to have more memory than is physically installed by storing seldom-used data on disk. It provides large address spaces, memory protection, memory mapping, and shared virtual memory.
- File management in Linux involves directories for organizing files. There are three types of files: regular files, directories, and special files representing physical devices. Basic file operations like listing, creating, copying, moving, renaming, and deleting files are performed using commands like
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
34 views13 pages
Inter Process Communication
The document discusses several topics related to operating system processes:
- Processes can communicate through shared memory or message passing. Shared memory allows processes to access the same memory resources, while message passing involves establishing communication links and exchanging messages.
- Virtual memory allows a system to appear to have more memory than is physically installed by storing seldom-used data on disk. It provides large address spaces, memory protection, memory mapping, and shared virtual memory.
- File management in Linux involves directories for organizing files. There are three types of files: regular files, directories, and special files representing physical devices. Basic file operations like listing, creating, copying, moving, renaming, and deleting files are performed using commands like
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13
Inter Process Communication
Operating system allows various processes to communicate with
each other. Processes can communicate with each other through both:- Shared memory Message passing Shared Memory One way of communication using shared memory can be imagined like this: Suppose process1 and process2 are executing simultaneously and they share some resources or use some information from another process. Message Passing In this method, processes communicates with each other by proceeding as follows:- Establish a communication link. Start exchanging messages using basic primitives. We need at least two primitives:- -send(message, destination) or send(message) -receive(message, host) or receive(message) Fig Memory Management Most important parts of the operating system. Strategies has been developed to overcome the limitations of physical memory and the most successful of these is virtual memory. Virtual Memory Makes the system appears to have more memory than it actually has. Does more than just make computer memory go further. The memory management subsystem provides:- a. Large Address Spaces b. Protection c. Memory Mapping d. Fair Physical Memory Allocation e. Shared Virtual Memory File Management in Linux To handle the files Linux has directories also known as folders. Linux has three types of files: 1) Regular Files:- It includes files like- text files, images, binary files, etc. 2) Directories:- These are the files that store the list of files, names and the related information. root directory(/) – base, /home/ - default location, /bin – Essential User Binaries, /boot – Static Boot Files, etc. we could create new directories with ‘mkdir’ command. Continued… 3) Special Files:- Represents a real physical device such as a printer which is used for I/O operations. File operations 1. File Listing: $ls – All files and directories in the current directory would be listed. $ls-l – It returns the detailed listing of the files and directories in the current directory. 2. Creating files: ‘touch’ command can be used to create new files. $touch filename 3. Displaying Files content: ‘cat’ command can be used to display the content of the file. $cat filename Continued… 4. Copying a File: ‘cp’ command can be used to create copy of a file. $cp source/filename destination/ 5. Moving a File: ‘mv’ command can be used to move a file from source to destination. $mv source/filename destination/ 6. Renaming a File: ‘mv’ command can also be used to rename a file. $mv filename new_filename Continued… 7. Deleting a File: ‘rm’ command can be used to remove or delete a file. $rm filename Device Management Process of managing the implementation, operation, and maintenance of a physical or virtual device. Device files are also known as Special device files. Linux device files are located in the /dev directory, which is an integral part of the root(/). Thank you! Have a Nice Day.