Operating System
Operating System
3. What is a Thread?
A thread is a single sequence stream within a process. Because
threads have some of the properties of processes, they are
sometimes called lightweight processes. Threads are a popular
way to improve the application through parallelism. For
example, in a browser, multiple tabs can be different threads.
MS Word uses multiple threads, one thread to format the text,
another thread to process inputs, etc.
6. What is Thrashing?
Thrashing is a situation when the performance of a computer
degrades or collapses. Thrashing occurs when a system spends
more time processing page faults than executing transactions.
While processing page faults is necessary in order to appreciate
the benefits of virtual memory, thrashing has a negative effect
on the system. As the page fault rate increases, more
transactions need processing from the paging device. The queue
at the paging device increases, resulting in increased service
time for a page fault.
7. What is Buffer?
A buffer is a memory area that stores data being transferred
between two devices or between a device and an application.
location in a memory
Basic generated by the CPU.
unit.
Logical Address
Physical Address is a set
Space is a set of all
of all physical addresses
Address logical addresses
mapped to the
Space generated by the CPU
corresponding logical
in reference to a
addresses.
program.
management.
It is the process of a
3. It is a heavyweight process.
lightweight part.
S.No Multi-threading Multi-tasking
It is a feature of the
4. It is a feature of the OS.
process.
The Logical
Address is Physical Address is
5. Generation
generated by the Computed by MMU
CPU
Internal fragmentation
External fragmentation
happens when the
2. happens when the method or
method or process is
process is removed.
larger than the memory.
of segmentation.
In paging, logical
Here, logical address is split
address is split into that
6. into section number and
page number and page
section offset.
offset.
A page table is
Section Table maintains the
8. employed to keep up the
section data.
page data.
In segmentation, the
In paging, operating
operating system maintains a
9. system must maintain a
list of holes in the main
free frame list.
memory.
S.NO Paging Segmentation