Topic 7 – Structure of an operating system Flashcards
the processor is awre of this by storing a mode bit in the status register
how does the processor know which mode it is running in
how do linux desktop environments make use of the X11 window system
these build on top of the X11 window system (use it as a framework) so that:
the desktop environment will interact with its window manager and the window manager will interact with the X11 window system which then interacts with the mouse, keyboard and screen
what is a
micro kernel
this is an operating system that has as few kernel modules as possible, and most modules will run in user mode
describe the widget toolkit of a linux desktop environment
this provides tools that applications can use so that they follow the look and feel of the desktop environment. The toolkit in geneal will be comprised of buttons and controls and dialogue boxes
this is used to view currently active kernel modules
what is the linux command
lsmod
used for
these are modules that can be later added into the operating systems kernel.
these are important since an operating system kernel cannot include alll the funcionality it will ever need such as kernel-mode drivers
what a
dynamic modules
what type of kernel does linux use
this uses a monolithic kernel
this uses a monolithic kernel
what type of kernel does linux use
how do the modules of a micro kernel speak with each other since they run in both user and kernel mode
communication between these modules happens through a
interprocess communication mechanism (IPC)
this is an operating system that has as few kernel modules as possible, and most modules will run in user mode
what is a
micro kernel
what is the linux command
Update alternatives
used for
This is a debian command that allows storage and interchangeability between different software that may have the same functionality such as a word processor or a desktop environment
The choice of software chosen is declared by the priority when software is being chosen automatically although a user can select software manually
advantages of this are:
- multitasking is acheivable by allowing the operating system to handle and distribute resources such as hardware
- hardware indenpendence is achievable by allowing the OS to provide standard functions to applications regardless of the hardware in use
- individual applications cannot hog hardware
- individual applications cannot overwrite the data of another application
name 4 benefits of
separating applications from hardware via the operating system
this provides the benefit that an operating system can be used with many platforms and architectures such as:
- amd vs intel
- 32 bit vs 64 bit
it is simply a case of switching out this layer for the appropriate hardware
what benefts does the
hardware abstraction layer
provide
This is a debian command that allows storage and interchangeability between different software that may have the same functionality such as a word processor or a desktop environment
The choice of software chosen is declared by the priority when software is being chosen automatically although a user can select software manually
what is the linux command
Update alternatives
used for
these carry out specific tasks and provide a software interface that applications can use in order to interact with these
what are
modules of an operating system
these include:
- monolithic kernel
- micro kernel
since modules within an operating system cannot be self contained
what are two ways that operating systems are deployed
what is the
X window system
this is a window system that provides management of moving and displaying the windows on screen as well providing the input from the keyboard and mouse it will also output any graphics commands. In essence it manges communication between input devices and the display
what type of kernel does windows and macs use
these are a hybrid micro kernels they support IPC but much of the os still runs in kernel mode
in this case the processor mode is switched to kernel mode and control is handed to the operating system.
the operating system can then run any privileged commands on behalf of the application
upon completion a SYSCALL return instruction is executed and control is handed back to the application
what happpens when a system call is made
what is the linux command
modprobe
used for
this command is used to load and unload kernel modules
in linux how are modules added to the operating sytem kernel
this is achieved with the use of files with the .ko extension
what is a
system call
this is a machine instruction that any application running in user mode will use so that it can carry out tasks such as accessing hardware
the steps for this include:
- the application program uses an API provided by the OS that can write to memory
- a library subroutine is then called
- the library subroutine makes a SYSCALL
- the processor mode is switched to kernel mode
- the operating system memory management system sends an instruction to the processor
- new data is then written to RAM
using the diagram below describe how an application program would write new data to RAM
what is the linux command
lsmod
used for
this is used to view currently active kernel modules
what are
modules of an operating system
these carry out specific tasks and provide a software interface that applications can use in order to interact with these
how does the processor know which mode it is running in
the processor is awre of this by storing a mode bit in the status register
when this occurs the processor halts its current execution and switches to kernel mode
a special interrupt routine is then ran so that data from hardware can be dealt with
upon completion a return instruction is executed and the previous mode bit restored
what happens when a processor receives an interrupt from hardware