Operating Systems Flashcards
Middleware
Software that acts as a bridge between an operating system or database and applications , especially on a network
Operating System
it’s basically the piece of system software that manages computer hardware and the rest of the software
Stack
a stack,which stores local variables
A stack frame is created/pushed whenever a function is called
A stack frame is deleted/popped whenever a function returns .
Heap
A heap , for dynamically allocated memory(typically handled by libc)
one can request memory for an object(contiguous chunk of bytes )
one should declare when an object is not in use anymore ,so memory can be reclaimed
Threads
“Threads are independent units of computation (sequences of instructions, plus some small context) that can be scheduled for execution on a CPU.
The scheduler is part of the operating system.
Threads are created within a process, and share the same process address space (i.e. two threads could modify the same variable in a process).”
Why are threads needed?
-to enhance parralel processing
-to increase response to the user
-to utilise the idle time of the cpu