Free Space Management in OS | Multi Threading

By:   Last Updated: in: ,

Operating System: Q1.Free Space Management in OS? Q2.Multi Threading? - with example. (Operating System all notes)

Free-Space-Management-in-OS

Q1. What is free space management?

Ans. We need free space management because it is used to reuse the space from deleted files for new files, if it is possible. The system contains a free space list that holds the list of free spaces in the disk.

It includes: Free Space Management in OS

(a) Bit Vector: Fast for contiguous allocation and small disks especially with hardware support.
(b) Linked List.
(c) Grouping free block contains addresses of the free block and the last free block contains the address of the next block containing addresses of free blocks.
(d) Counting disk addresses and free count of contiguous blocks.

Thread-and-Multi-Threading

Q2. Describe Multi Threading with suitable example?

Ans. Multithreading Concept: A thread is the basic unit of CPU utilization. It consists of thread ID, a program counter, a register set, and a stack. It shares with other threads belonging to the same process is a code section, data section, and other resources.
If a process has multiple threads of control it can perform more than one task at a time. This is called a multithreading concept.

Example: A word processor may have the thread for displaying graphics, another thread for responding to keystrokes from the user, and a third thread for performing spelling and grammar checking is the background.
Thread-and-Multi-Threading-diagram

Benefits of Multi Threading:

1. Responsiveness: For example, a multithreaded web browser could still allow user interaction in one thread while an image was being loaded in another thread.
2. Resource Sharing: It allows an application to have several different threads of activity within the same address space.
3. Economy: Because threads share resources of the process to which they belong.
4. Utilization of Multiprocessor Architecture: Multithreading on a multi-CPU machine increases concurrency.




[ Topic= Free Space Management in OS, Multi Threading ]



Join us on Facebook, Instagram, and Twitter to get the latest study material. You can also ask us any questions.
Facebook = @allbcaweb
(click on it or search "allbcaweb" on Facebook)
Instagram = @allbcaweb
(click on it or search "allbcaweb" on Instagram)
Twitter = @allbcaweb
(click on it or search "allbcaweb" on Twitter)
Email= allbca.com@gmail.com
Send us your query anytime about Free Space Management in OS!


External Links:-

1. Free Space Management in OS - (click here)
2. Multi Threading - (click here)

[ Topic= Multi Threading, Multi Threading ]

No comments:
Write comment