Chapter 9 Flashcards
Explain pipe
For communication between related processes on the system.
Explain named pipe (FIFO)
For communication between related or unrelated processes on the system. It will be a file.
Explain socket
For communication between related or unrelated processes on the same system of different systems.
What is read system call
It is for reading from a file
What is write system call
It is for writing through a file
What is close system call
It is for close a file
There are 3 parameters for opening a file, one is oflag, what is oflag
oflag specifies the purpose of opening a file
There are 3 parameters for opening a file, one is mode, what is mode
mode specifies the permissions
What is meaning when read hit 0
It means it is at the end of file
What are possible errors/call fail for file writing
- Invalid arguments
- file size limit
- Disk is full
What is file table
This table is used during file operations
What is inode table
This table is used during file operations. Every unique file has a unique inode. It holds the attributes of file.
What are 3 files that Linux/UNIX opened it automatically for every process
These are called standard files. Standard input, standard output and standard error
What are standard file descriptors
The descriptors of standard files. It value is 0 for standard input, 1 for standard output and 2 for standard error.
When can pipe call fail
- at least 2 slots not empty in PPFDT
- Buffer space not available in the kernel
- File table is full