Chapter 2 Flashcards
what is a command interpreter
same thing as a CLI or command line interface
what are system calls?
provide an interface to the services made available by the operating system
why are API’s preferable to directly calling system calls?
API’s provide a level of abstraction to ensure portability they are also generally simplified interfaces compared to the sys call. API’s are the interface between user mode and kernel mode
what are the ways parameters are passed to system calls?
through registers, in a block of memory with the address of the memory being put in the register
what is a process control system call?
manages the creation and termination of processes, loading and executing programs, getting and setting process attributes, allocating and freeing memory
what is a file management system call?
creates, deletes files. opens and clsoes files, reads and writes or moves, gets and sets file attributes
what are device management system calls?
request and release device, read write to the device, get and set device attributes, attach and detach devices
what are information maintenance system calls?
get/set time or date, get/set system data, get/set process, file or device attributes
what are communication system calls?
handles interprocess communication
what two types of constructs are so similar that unix treats them as the same?
device management and file system
what is the general purpose of information maintenance system calls?
to simply transfer information between the user program and the operating system. just generic things that may not fit exclusively into the various buckets, like version numbers or date time. they also critically provide stack traces
name the two types of interprocess communications
message passing model and shared-memory model
how are daemons used for interprocess communication?
a daemon wates for a connection in a client/server model and then facilitates communication with read_message() and write_message()
what are protection system calls?
they provide mechanisms for controlling access to resources. like setting and getting permissions
what is the difference between system services and system calls?
system calls are singular things, system services can be an abstraction of multiple system calls and other logic