OS Structures Flashcards
(61 cards)
What is the main objective of an operating system?
To provide an environment for execution of programs and services to programs and users.
What are the two main types of user interfaces in operating systems?
- Command-Line Interface (CLI)
- Graphical User Interface (GUI)
What is batch program execution in operating systems?
The system must be able to load a program into memory and to run that program, ending execution normally or abnormally.
What operations may a running program require from the operating system?
I/O operations involving a file or an I/O device.
What is file-system manipulation?
The ability to read, write, create, delete files and directories, search them, list file information, and manage permissions.
What is the purpose of communications in an operating system?
To allow processes to exchange information on the same computer or between computers over a network.
What is error detection in an operating system?
The OS must be aware of possible errors that may occur in hardware, I/O devices, or user programs and take appropriate actions.
What does resource allocation involve in an operating system?
Allocating CPU cycles, main memory, file storage, and I/O devices to multiple users or jobs running concurrently.
What is the role of accounting in an operating system?
To track which users use how much and what kinds of computer resources.
What is the difference between protection and security in an operating system?
- Protection ensures controlled access to system resources
- Security protects the system from unauthorized access by outsiders.
What is a command interpreter in a CLI?
It allows direct command entry and fetches a command from the user to execute it.
What is a GUI?
A user-friendly desktop metaphor interface that uses icons and mouse interactions to represent files, programs, and actions.
What are touchscreen interfaces designed for?
To allow actions and selections based on gestures, often incorporating virtual keyboards and voice commands.
What is a system call in an operating system?
A programming interface to the services provided by the OS, typically written in a high-level language.
What are the three most common APIs for system calls?
- Win32 API for Windows
- POSIX API for POSIX-based systems
- Java API for the Java virtual machine
How are parameters passed to the operating system?
- Via registers
- Stored in a block in memory
- Placed on the stack
What are the types of system calls related to process control?
- Create process
- Terminate process
- Load, execute
- Allocate and free memory
What types of system calls are related to file management?
- Create file
- Delete file
- Open, close file
- Read, write, reposition
What types of system calls are related to device management?
- Request device
- Release device
- Read, write, reposition
What types of system calls are related to information maintenance?
- Get/set time or date
- Get/set system data
- Get/set process, file, or device attributes
What are the communication-related system calls?
- Create, delete communication connection
- Send, receive messages
- Access memory regions in shared-memory model
What are the types of system calls related to communication?
Create, delete communication connection, send, receive messages
These calls are essential for inter-process communication.
What does the shared-memory model allow?
Create and gain access to memory regions, transfer status information, attach and detach remote devices
This model enables different processes to communicate by accessing shared memory.
What is the purpose of protection system calls?
Control access to resources, get and set permissions, allow and deny user access
These calls ensure system security and resource management.