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.