List free space management techniques? Describe any one in detail.

1 Answer

Answer :

A file system is responsible to allocate the free blocks to the file therefore it has to keep track of all the free blocks present in the disk.

There are mainly four approaches by using which, the free blocks in the disk are managed.

Bit Vector

Linked List

Grouping

Counting


Bit Vector:

The free-space list is implemented as a bit map or bit vector.

Each block is represented by 1 bit. If the block is free, the bit is 1; if the block is allocated, the bit is 0.

For example, consider a disk where blocks

2, 3, 4, 5, 8, 9, 10, 11, 12, 13 are free and the rest of the blocks are allocated.

The free-space bit map would be : 0011110011111100


image

The main advantage of this approach is its relative simplicity and its efficiency in finding the first free block or n consecutive free blocks on the disk.

Linked List

In this approach, the free disk blocks are linked together i.e. a free block contains a pointer to the next free block.

The block number of the very first disk block is stored at a separate location on disk and is also cached in memory.

In this approach, link all the disk blocks together, keeping a pointer to the first free block.

This block contains a pointer to the next free disk block, and so on.

image

Related questions

Description : List components of OS. Explain process management in detail.

Last Answer : List of System Components: 1. Process management 2. Main memory management 3. File management 4. I/O system management 5. Secondary storage management Process Management: The operating ... synchronization. 4. A mechanism for process communication. 5. A mechanism for deadlock handling.

Description : Enlist different file allocation methods? Explain contiguous allocation method in detail.

Last Answer : From the user's point of view, a file is an abstract data type. It can be created, opened, written, read, closed and deleted without any real concern for its implementation. The implementation of a ... a times is difficult to estimate. 4. Compaction may be required and it can be very expensive.

Description : Explain multithreading model in detail.

Last Answer : Many systems provide support for both user and kernel threads, resulting in different multithreading models. Following are three multithreading model: Many-to-One Model The many-to- ... True concurrency cannot be achieved. Multiple threads of kernel is an overhead for operating system

Description : Enlist the operating system tools. Explain any two in detail.

Last Answer : Following are the operating tools: User Management Security policy Device Management Performance Monitor Task Scheduler A) User management: User management includes everything ... routing tables, interface statistics, masquerade connections, and multicast memberships. # netstat -tulpn

Description : Enlist types of operating system. Explain multiprogramming OS in detail.

Last Answer : Types of operating system 1.Batch Systems 2.Multiprogramming 3.Multitasking 4.Time-Sharing Systems 5.Desktop Systems 6.Distributed system 7.Clustered system 8.Real Time system: Multiprogramming ... multiprogramming: user can open word, excel, access and other applications in a system.

Description : State and describe types of scheduler.

Last Answer : There are three types of scheduler: Long term scheduler Short term scheduler Medium term scheduler 1. Long term scheduler: It selects programs from job pool and loads them into the ... scheduler works in close communication with long term scheduler for loading process into the main memory. 

Description : Describe sequential and direct access method.

Last Answer : Sequential access: Information from the file is processed in order i.e. one record after another. It is commonly used access mode. For example, editors and compilers access files in sequence. A read ... prevent the user from accessing portions of the file system that may not be part of his file.

Description : Describe I/O Burst and CPU Burst cycle with neat diagram.

Last Answer : CPU burst cycle: It is a time period when process is busy with CPU.  I/O burst cycle: It is a time period when process is busy in working with I/O resources. A process execution consists ... cycle and so on. The final CPU burst cycle ends with a system request to terminate execution.

Description : Describe any four file attributes

Last Answer : File attributes: Name: The symbolic file name is the only information kept in human readable form. Identifier: File system gives a unique tag or number that identifies file within file ... Last modification and last use. These data can be useful for protection, security and usage monitoring.

Description : List any four features of open source operating system.

Last Answer : 1. Open Source: open source OS code is freely available and it is community based development project. Multiple team's works in collaboration to enhance the capability of operating system and it is ... issuing a command in Linux Terminal or Shell. Linux can also run Windows applications if needed.

Description : Write Unix command for following: i)create a folder OSY ii) create a file FIRST in OSY folder iii) List/display all files and directories. iv) Write command to clear the screen

Last Answer : i) create a folder OSY: $mkdir OSY ii)create a file FIRST in OSY folder: $cd OSY $cat>FIRST or $ touch FIRST iii) List/display all files and directories: $ls iv) to clear screen: $clear

Description : Define real time operating system. List its any four applications of it.

Last Answer : Real time Operating System: A real time system has well defined fixed time constraints. Processing should be done within the defined constraints -Hard and Soft real time system. OR The ... Applications: 1. Flight Control System 2. Simulations 3. Industrial control 4. Military applications

Description : Explain LRU page replacement algorithm for following reference string. 7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1 Calculate the page fault.

Last Answer : LRU: The Least Recently Used (LRU) page replacement policy replaces the page that has not been used for the longest period of time. LRU replacement associates with each page the time of that page's last use. ... in question so assume frame size as 3 or 4) LRU: Assume frame size=3

Description : Explain PCB with diagram.

Last Answer : Each process is represented as a process control block (PCB) in the operating system. It contains information associated with specific process. Process State: It indicates current state of a process. ... . Each PCB gives information about a particular process for which it is designed.

Description : Explain Round Robin algorithm with suitable example.

Last Answer : It is preemptive scheduling algorithm. A small unit of time known as a time quantum or time slice is used for pre-emption of a currently running process. Ready queue is implemented as a circular ... has received 1 time quantum, the CPU returns to process P1 for an additional time quantum. 

Description : What is purpose of system call? State two system calls with their functions.

Last Answer : System call provides an interface between a running program and operating system. It allows user to access services provided by operating system. This system calls are procedures written using C, ... send, receive messages transfer status information attach or detach remote devices. 

Description : Explain partitioning and its types.

Last Answer : An important operation of memory management is to bring programs into main memory for execution by the processor. Partitioning is a technique that divides a memory into multiple partitions. These partitions ... in memory. For example: Consider following table with process and memory space.

Description : Explain deadlock? What are necessary conditions for deadlock?

Last Answer : In multiprogramming environment, several processes may compete for a finite number of resources. A process requests resources and if the resources are not available then the process enters into the ... Each process is waiting for the resources held by other waiting processes in circular form.

Description : With neat diagram explain inter process communication model.

Last Answer : Inter-process communication: Cooperating processes require an Interprocess communication (IPC) mechanism that will allow them to exchange data and information. There are two models of IPC 1. ... a communication link between them. Between each pair of processes exactly one communication link.

Description : Write syntax for following commands: i)Sleep ii)Kill

Last Answer : i)sleep Syntax: sleep NUMBER[SUFFIX]… sleep OPTION ii) kill Syntax: kill pid

Description : Define virtual memory

Last Answer : Virtual memory is a memory management capability of an operating system (OS) that uses hardware and software to allow a computer to compensate for physical memory shortages by temporarily transferring data ... can be placed in overlays, but can concentrate instead on the problem to be programmed. 

Description : Explain any four scheduling criteria.

Last Answer : 1. CPU utilization: In multiprogramming the main objective is to keep CPU as busy as possible. CPU utilization can range from 0 to 100 percent. 2.Throughput: It is the number of processes ... fairly early and can continue computing new results while previous results are being output to the user.

Description : Draw process state diagram.

Last Answer : process state diagram

Description : Explain any 4 services provided by OS.

Last Answer : 1.User Interface: All operating systems have a user interface that allows users to communicate with the system. Three types of user interfaces are available: a. Command line interface ( ... to system resources. Security is provided by user authentication such as password for accessing information.

Description : Explain the Congestion Avoidance techniques in detail.

Last Answer : _ Leaky bucket algorithm _ Token bucket algorithm _ Switch controlling the output rate _ Flowchart

Description : Which of the following surgical techniques lead to improved wound healing? a. Atraumatic handling of tissue b. Approximation of underlying fatty tissue to obliterate dead space c. Protecting the wound from water for at least one week d. Meticulous hemostasis

Last Answer : Answer: a, d There are numerous practical implications for the care of wounds and surgical incisions. Meticulous hemostasis reduces the inflammation of phagocytosis necessary to clear the wound of ... or shower one or two days after surgery actually serves useful purpose in debriding the wound

Description : What could possibly be the environment of a Satellite Image Analysis System? a) Computers in space and earth b) Image categorization techniques c) Statistical data on image pixel intensity value and histograms d) All of the mentioned

Last Answer : d) All of the mentioned

Description : Which of the following techniques can be used for optimizing backed up data space? a) Encryption and Deduplication b) Compression and Deduplication c) Authentication and Deduplication d) Deduplication only

Last Answer : Compression and Deduplication

Description : Which of the following techniques can be used for optimizing backed up data space? a) Encryption and Deduplication b) Compression and Deduplication c) Authentication and Deduplication d) Deduplication only

Last Answer : Compression and Deduplication

Description : Explain the two types of memory management techniques, which are used for allocating memory. -Technology

Last Answer : Memory ManagementIt is the act of managing computer's primary memory or main memory. Main memory is a large array of words or bytes where each ward or byte has its ... your system configuration and requirement. Partitioned allocation divides primary memory of computer into multiple memory.

Description : What are some stress management techniques?

Last Answer : Sitting at a desk all day can lead to a very stressful, and often tension inducing daily lifestyle. Try buying a stressball, or grip bar, both provide the same function and allow you to work ... get up every once in a while and do some basic stretching, or perform concentrated breathing exercises.

Description : What are common techniques for stress management?

Last Answer : There are many techniques and activities you can take part in to help manage stress. Take up yoga or a similar exercise routine. Work out, weight lift, go for walks, jog, practice breathing techniques and even meditation are all effective ways to manage and lower you're stress levels.

Description : Are there stress management techniques that can help me sleep better?

Last Answer : The best stress management technique to exercise. Most people can get exercise through walking and many can do the more strenuous activities with home equipment or at a gym.

Description : How do I learn stress management techniques?

Last Answer : Well there is quite a few ways to let stress out in a positive manner such as exercising and playing games to ease your mind away from the depressing things for a while

Description : According to the Project Management Institute (PMI), project  management is defined as the application of knowledge, _____, _____, and  techniques to project activities to meet the project requirements . Select ... b. tools, analysis c. analysis, theories d. skills, tools e. skills, theories

Last Answer : d. skills, tools

Description : The advantage of following the IEEE Standard for drawing up a Project Management Plan (SPMP) - see IEEE Standard 1059.1 1987 - is a) It is drawn up by representatives from major  ... each organisation for a  particular applicationarea, development team or  technique. e) All of the above.

Last Answer : e) All of the above.

Description : Which of the following items should not be included in the  project management plan? a) The techniques and case tools to be used b) Detailed schedules, budgets and resource ... development  organisation, project responsibilities, managerial  objectives and priorities e) None of the above.

Last Answer : c) The life cycle model to be used

Description : Project management includes the tools, techniques, and essential to  deal with the growth of products a. Knowledge b. Skill c. Attitude d. Confidence

Last Answer : a. Knowledge

Description : Hawthorne studies A. Recognizes that the appropriate management actions depend on the situation B. Studied the relationship of lighting levels to worker productivity. C. Involves the use of quantitative techniques to improve management decision making. D. None of these options is correct

Last Answer : Studied the relationship of lighting levels to worker productivity.

Description : The Management Science Approach . A. Recognizes that the appropriate management actions depend on the situation B. Studied the relationship of lighting levels to worker productivity. C. ... quantitative techniques to improve management decision making. D. None of these options is correct

Last Answer : Involves the use of quantitative techniques to improve management decision making.

Description : Elton Mayo is the management guru who….. A. Stressed the importance of people rather than techniques B. Is credited with developing the ‘Acceptance Theory of Management’ C. Conducted the Hawthorne studies D. None of these options is correct.

Last Answer : Conducted the Hawthorne studies

Description : Chester Barnard is the management guru who….. A. Stressed the importance of people rather than techniques B. Is credited with developing the ‘Acceptance Theory of Management’ C. Conducted the Hawthorne studies D. None of these options is correct.

Last Answer : Is credited with developing the ‘Acceptance Theory of Management

Description : Mary Parker Follett’s management principles….. A. Stressed the importance of people rather than techniques B. Are credited with developing the ‘Acceptance Theory of Management’ C. Is based on the Hawthorne studies D. None of these options is correct

Last Answer : Stressed the importance of people rather than techniques

Description : Hawthorne studies A. Recognizes that the appropriate management actions depend on the situation B. Studied the relationship of lighting levels to worker productivity. C. Involves the use of quantitative techniques to improve management decision making. D. None of these options is correct.

Last Answer : Studied the relationship of lighting levels to worker productivity.

Description : The Management Science Approach . A. Recognizes that the appropriate management actions depend on the situation B. Studied the relationship of lighting levels to worker productivity. C. ... quantitative techniques to improve management decision making. D. None of these options is correct.

Last Answer : Involves the use of quantitative techniques to improve management decision making

Description : Elton Mayo is the management guru who….. A. Stressed the importance of people rather than techniques B. Is credited with developing the ‘Acceptance Theory of Management’ C. Conducted the Hawthorne studies D. None of these options is correct.

Last Answer : Conducted the Hawthorne studies

Description : Chester Barnard is the management guru who….. A. Stressed the importance of people rather than techniques B. Is credited with developing the ‘Acceptance Theory of Management’ C. Conducted the Hawthorne studies D. None of these options is correct.

Last Answer : Is credited with developing the ‘Acceptance Theory of Management’

Description : Parker Follett’s management principles….. A. Stressed the importance of people rather than techniques B. Are credited with developing the ‘Acceptance Theory of Management’ C. Is based on the Hawthorne studies D. None of these options is correct.

Last Answer : Stressed the importance of people rather than techniques

Description : Energy monitoring and targeting is …………. a. primary management techniques b. secondary management techniques c. tertiary management techniques d. None

Last Answer : primary management techniques

Description : Conflict management techniques can: (a) resolve conflict. ; (b) stimulate conflict. ; (c) both resolve and stimulate conflict. (d) none of the above

Last Answer :  (c) both resolve and stimulate conflict.