1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Rom4ik [11]
4 years ago
7

Contrast the performance of the three techniques for allocating disk blocks (contiguous, linked, and indexed) for both sequentia

l and random file access. [12 marks]
Computers and Technology
2 answers:
sladkih [1.3K]4 years ago
5 0

Answer:

There are three main disk space or file allocation methods.  

• Contiguous Allocation  

• Linked Allocation  

• Indexed Allocation

By the performance level  

Contiguous allocation > linked Allocation > Indexed Allocation

Contiguous is faster than linked allocation and both contiguous and linked are faster than indexed.

As  linked allocation does not support direct access and the indexed allocation , the pointer of it is bigger than linked allocation  

Explanation:

1.Contiguous Allocation :

In this scheme, each file occupies a contiguous set of blocks on the disk.

> It supports both accesses (sequential and direct)

> Its extremely fast as the number of seeks are minimal because of contiguous allocation of file blocks.

but on the other hand it has some disadvantages as

> It can not deal with fragmentation whether its external or internal.

> And also increasing the size of it may get difficult.

2. Linked Allocation:

In this type of allocation, each file is a linked list of disk blocks and the disk blocks can be scattered anywhere on the disk.

> This type is very flexible with the file size.  

> This method also does not suffer from external fragmentation. This makes it better in terms of memory utilization.

> It does not support random or direct access while it slightly support sequential access.

3. Indexed Allocation:

There is a special block known as the Index block contains the pointers to all the blocks occupied by a file in this type of allocation. Each file has its own index block.  

> This type supports direct access therefore provides fast access to the file blocks.  

> It also overcomes with the problem of external fragmentation.

Pie4 years ago
3 0
The allocation methods define how the files are stored in the disk blocks.
There are three main disk space or file allocation methods:
1.Contiguous Allocation-in this scheme,each file occupies a set of blocks on the disk. For example if a file requires x blocks and is given a block y as the starting location,then the blocks assigned to the file be :x,y+1,y+2,......y+x-1.
This means that given the starting block address and the length of the file(in terms of blocks required) we can determine the blocks occupied by the file.
Advantages
-both the sequential and direct accesses are supported
-this is extremely fast since the number of seeks are minimal because of contiguous allocation of file blocks.
2.linked allocation-in this scheme,each file linked list of disk blocks which need not  be contiguous disk blocks can be scattered anywhere on the disk.
Advantages
it is very flexible in terms of file size.file size can be increased easily since the system does not have to look for a contiguous chunk 
of memory.
this method does not suffer from external fragmentation and it makes it relatively better in terms of memory utilization.
3.Indexed Allocation-in this scheme,a special block known as the index block contains the pointers to all the blocks occupied by a file.Each file has its own index block.the entry in the index block contains the disk address of the block
Advantages
it supports direct access to the blocks occupied by the file and therefore provides fast access to the file blocks
it overcomes the problem of external fragmentation.
You might be interested in
While doing research for a newspaper article on different career salaries, Lucinda finds a broad range of salaries for nurses wh
anastassius [24]
From the given situation above, the best suggestion that can be given to Lucinda for a better research tool for her article is that, Lucinda should <span>consult .org websites, perhaps one linked with a nurses’ association, or consult a .gov website with national labor statistics on nursing salaries, both of which are more reliable. The correct answer would be the last option, option D.</span>
7 0
4 years ago
Your AV software is unable to detect a recent virus that has infected your computer. You want to download another AV application
vladimir2022 [97]
The answer would be C.

4 0
3 years ago
WHAT ARE SOME PROS AND CONS OF HYDROGEN FUELL CELLS
Nonamiya [84]

Answer:

ok

Explanation:

Pros: No vehicle emissions other than water vapor. Fuel economy equivalent to about twice that of gasoline vehicles.  

Cons: This technology is really hard to set up and expensive.

7 0
3 years ago
What transport layer protocol does DNS normally use?
saveliy_v [14]

Explanation:

DNS uses the User Datagram Protocol (UDP) on port 53 to serve DNS queries. UDP is preferred because it is fast and has low overhead. A DNS query is a single UDP request from the DNS client followed by a single UDP reply from the server.

3 0
3 years ago
Codehs:<br> 7.2.6 Can you Graduate?<br><br> 7.2.7 School’s Out
Afina-wow [57]

Answer:

No

Explanation:

8 0
2 years ago
Other questions:
  • Respond to the following in 2-5 paragraphs. Give an example of how you can demonstrate active listening.
    12·1 answer
  • Whats 400000 time 93823
    14·2 answers
  • Here is free points im leaving
    11·2 answers
  • Steve is conducting research on the reach of mental health care to the youth. After gathering data on psychologists, he creates
    8·1 answer
  • The duties of a database administrator include determining which people have access to what kinds of data in the database; these
    13·2 answers
  • Imagine that a company is having trouble assuring its bills are paid on time. An effective solution will
    13·1 answer
  • p25: File Write and Read1) User enters a file name (such as "myMovies.txt").2) User enters the titles of 4 of their favorite mov
    12·1 answer
  • A worksheet can have a maximum of number of rows​
    11·2 answers
  • The advantages and disadvantages of internet​
    6·1 answer
  • What happens in the winding house of a mine?​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!