Question

In: Computer Science

1-Why is a device such as a tape-drive a poor secondary storage device for Random/Direct access...

1-Why is a device such as a tape-drive a poor secondary storage device for Random/Direct access to a file?

2-. Describe 3 different approaches that can be implemented with respect to file system mounting.?

3-The concept of a global clock is NOT realistic – why?

Solutions

Expert Solution

1-Why is a device such as a tape-drive a poor secondary storage device for Random/Direct access to a file?
Ans)
Tape-drive is a poor secondary storage device for random/direct access to a file because of the following reasons.

a) Arrival at the desired storage location may be preceded by sequencing through other locations
b) Data can be retreieved only in the sequence in which it is stored
c) Access time varies according to the storage location of information being accessed
d) Suitable for sequential processing applications where most of the data records need to be processed one after another


2-Describe 3 different approaches that can be implemented with respect to file system mounting.?
Ans)
A file system has to be mounted before it can be used by operating system and is available to users. The mount process makes set of files and directories within a disk partition available within the file name space. There are different approaches for mounting file systems. Following are some of them.

a) Microsoft's FAT file system
The FAT approach is used by Microsoft's FAT12, FAT16, and FAT32 file systems. These were used since the days of first MSDOS floppy-disk based file systems (FAT12) and are still supported through today's systems. All of these file systems rely on clusters. The number after the FAT refers to size of the cluster pointers.

FAT16 used 16-bit cluster pointers and supported up to 64 sectors per cluster, offering a maximum file system size (with 512 byte sectors) of 2 GB. FAT32, introduced with Windows 95, increased the cluster pointers to 32-bit values. With up to 64 sectors per cluster, it now supported a maximum file system size of 8 TB and a maximum file size of 4 GB. In all of these systems, file metadata was stored in the directory file.

b) Unix file system
the indexing approach is the method used in Unix file systems (UFS). This was created in Bell labs unix version and is used in AT&T's
unix version as well. The Unix File System's inode comprises 10 direct blocks, one indirect block, one double indirect block, and one triple indirect block. It actually uses 1024-byte blocks and 32-bit block pointers.

c) Virtual File system interface (VFS)
Sun introduced another layer of abstraction called Virtual File System (VFS) Interface to its own version of UNIX. It is been adopted in many other POSIX like systems. The idea behind VFS is to provide object-oriented approach to file system. System calls related to file system interact with VFS directly. The VFS actually provide high level abstraction and is a generic interface for managing files and directories. It interacts with one or more file system modules that implement file system code and is unique to each file system. Each file system module expose common functional interface. File system module interacts with buffer cache and block device drivers to store and retrieve data from actual devices.

3-The concept of a global clock is NOT realistic – why?

Ans)
There are many clocks in distributed system as there are many systems. The clocks are coordinated to keep them consistent but no one clock has the exact time. Even if clocks were in sync the individual clocks on each component may run at a different rate leading them to out of sync only after one local clock cycle. Time is known only with a given precision. At frequent intervals, a clock may synchronize with other trusted clock. But clocks are not precisely the same because of time lapse due to transmission and execution.


Related Solutions

Why is a device such as a tape-drive a poor secondary storage device for Random/Direct access to a file?
Why is a device such as a tape-drive a poor secondary storage device for Random/Direct access to a file?
Why is the interview, in general, such a poor measurement device for inferring personality traits
Why is the interview, in general, such a poor measurement device for inferring personality traits
Which statement is NOT correct? a. Indexed random files are dispersed throughout the storage device without regard for physical proximity with related records. b. Indexed random files use disk storage ...
Which statement is NOT correct? a. Indexed random files are dispersed throughout the storage device without regard for physical proximity with related records.b. Indexed random files use disk storage space efficiently.c. Indexed random files are efficient when processing a large portion of a file at one time.d. Indexed random files are easy to maintain in terms of adding records.
The poor find it difficult to access the credit market. Discuss why, and make sure you...
The poor find it difficult to access the credit market. Discuss why, and make sure you touch on the following topics: asymmetric information, moral hazard, adverse selection, the lender’s problems, and how microfinance institutions are able to solve these. What does the recent evidence say about the impact of microfinance institutions on measures of household wellbeing?
OS(Operating Systems) [3] (a) Define DMA (Direct Memory Access).       (b) An input device can transmit 100...
OS(Operating Systems) [3] (a) Define DMA (Direct Memory Access).       (b) An input device can transmit 100 characters every 4 mils 10 , if the CPU needs 2 mics to service the             Interrupt. How much time is left for asynchronous I/O. What if it can transmit 1000 characters             every 4 mils and the CPU also needs 2 mics for the service routine.             What do you think? Explain your answer in details. [4]  (a) What is the interrupt types? Give examples.                 (b)...
1. A disk drive manufacturer sells storage devices with capacities of one terabyte, 500 gigabytes, and...
1. A disk drive manufacturer sells storage devices with capacities of one terabyte, 500 gigabytes, and 100 gigabytes with probabilities 0.5, 0.3, and 0.2, respectively. The revenues associated with the sales in that year are estimated to be $50 million, $25 million, and $10 million, respectively. Let X denote the estimated revenue of storage devices during that year. Determine the probability mass function of X, E(X), and Var(X).
7–2 Why is direct labor a poor base for allocating overhead in many companies? 7–3 Why...
7–2 Why is direct labor a poor base for allocating overhead in many companies? 7–3 Why are top management support and cross-functional involvement crucial when attempting to implement an activity-based costing system? 7–4 What are unit-level, batch-level, product-level, customer-level, and organization-sustaining activities? 7–5 What types of costs should not be assigned to products in an activity-based costing system? 7–7 Why is the first stage of the allocation process in activity-based costing often based on interviews? 7–10 Why is the form...
Explain why an operating system can be viewed as a resource allocator. Direct memory access is...
Explain why an operating system can be viewed as a resource allocator. Direct memory access is used for high-speed I/O devices in order to avoid increasing the CPU’s execution load. a) How does the CPU interface with the device to coordinate the transfer? b) How does the CPU know when the memory operations are complete? c) The CPU is allowed to execute other programs while the DMA controller is transferring data. Does this process interfere with the execution of the...
For each of the following file processing operations, indicate whether a sequential file, indexed random file, virtual storage access method, hashing,
For each of the following file processing operations, indicate whether a sequential file, indexed random file, virtual storage access method, hashing, or pointer structure would work best. You may choose as many as you wish for each step. Also, indicate which would perform the least optimally.a. Retrieve a record from the file based on its primary key value.b. Update a record in the file. c. Read a complete file of records. d. Find the next record in a file. e....
1. What are storage granules, and why are they important to the cell? 2. Why do...
1. What are storage granules, and why are they important to the cell? 2. Why do you need a special staining procedure for flagella?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT