Preview

theses

Better Essays
Open Document
Open Document
1003 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
theses
Operating System Principle (DKT 221)
Tutorial 2

1. Describe two general methods for passing parameters to the operating system.
Answer:
a. Passing parameters in registers
b. Registers pass starting addresses of blocks of parameters
c. Parameters can be placed, or pushed, onto the stack by the program, and popped off the stack by the operating system

2. States five major activities of an operating system with regard to file management.
Answer:
• The creation and deletion of files
• The creation and deletion of directories
• The support of primitives for manipulating files and directories
• The mapping of files onto secondary storage
• The backup of files on stable (nonvolatile) storage media

3. Discuss the advantages and disadvantages of using the same system call interface for manipulating both files and devices.
Answer:
Advantages
Each device can be accessed as though it was a file in the file system.
- Since most of the kernel deals with devices through this file interface, it is easy to add a new device driver by implementing the hardware-specific code to support this abstract file interface.
- This benefits the development of both :- a. User program code, which can be written to access devices and files in the same manner, and b. Device-driver code, which can be written to support a well-defined API.
Disadvantages
It might be difficult to capture the functionality of certain devices within the context of the file access API, thereby resulting in either:-
- Loss of functionality or a loss of performance.
- Some of this could be overcome by the use of the ioctl operation that provides a general-purpose interface for processes to invoke operations on devices.

4. Describe whether it is possible for the user to develop a new command interpreter using the system-call interface provided by the operating system. Explain your answer.
Answer:
It is possible
- The command interpreter allows a user to create and manage

You May Also Find These Documents Helpful

  • Good Essays

    Which of the following is not a feature of the file system that might be used with a hard disk drive?…

    • 957 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nt1210 Chapter 1 Review

    • 1315 Words
    • 6 Pages

    8. Which of the following is not a feature of a file system that might be used with a hard disk dirve?…

    • 1315 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    12. From Explorer or the Computer window, right-click a file or folder and select Properties from the short cut menu.…

    • 277 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1310 Unit 1 Assignment 1

    • 4503 Words
    • 19 Pages

    Students are required to choose an Operating system (OS) and study the OS in term of:…

    • 4503 Words
    • 19 Pages
    Powerful Essays
  • Better Essays

    Is418 Project 1-2-3

    • 1343 Words
    • 6 Pages

    The hardware is also incorporated into the file hierarchy. Device drivers interface to user applications via an entry in the /dev directory. Process information as well is mapped to the file system through the /proc directory.…

    • 1343 Words
    • 6 Pages
    Better Essays
  • Good Essays

    A student writes a report using a word processor, saving the report in a file called my_report. The student stores the file on his laptop hard disk drive. Later, he posts the file on a file-sharing site for a classmate to review the report. Then, he copies an updated version of the file to a flash drive to submit it to his instructor. Which of the following are some of the important features supplied by files as defined by a computer OS? (Three answers)…

    • 605 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Nt1330 Unit 1 Assignment

    • 4639 Words
    • 19 Pages

    Typically this constitutes an interface for communicating with the device, through the specific computer bus or communications subsystem that the hardware is connected to, providing commands to and/or receiving data from the device, and on the other end, the requisite interfaces to the operating system and software applications. It is a specialized hardware-dependent computer program which is also operating system specific that enables another program, typically an operating system or applications software package or computer program running under the operating system kernel, to interact transparently with a hardware device, and usually provides the requisite interrupt handling necessary for any necessary asynchronous time-dependent hardware interfacing…

    • 4639 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    Nt1310 Unit 3 Os

    • 1341 Words
    • 6 Pages

    +Ability: Operating system should permit effective, development, texting, and introduction to new system function without interfering with service…

    • 1341 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Pm3110 Lesson 4

    • 513 Words
    • 3 Pages

    A ____, used in RAID Level 2, is a coding scheme that adds extra, redundant bits to the data and is therefore able to correct single-bit errors and detect double-bit errors.…

    • 513 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Project

    • 1232 Words
    • 5 Pages

    Any media device with storage space with means of transfer via Bluetooth, WIFI, or USB cord.…

    • 1232 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    4. Give an example of how hardware can influence the operating system and software and vice versa.…

    • 816 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Arrakis OS

    • 719 Words
    • 3 Pages

    Recent device hardware trends enable a new approach to the design of network servers. In a traditional operating system, the kernel mediates access to device hardware by server applications, to enforce process isolation as well as network and disk security. Arrakis splits the traditional role of the kernel in two. Applications have direct access to virtualized I/O devices, allowing most I/O operations to skip the kernel entirely.…

    • 719 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Driver is a group of software files that enable one or more hardware devices to…

    • 1289 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Cs604 Mcq

    • 2090 Words
    • 9 Pages

    4. The main characteristic of a Real time system is a) b) c) d) Efficiency Large Virtual Memory Large secondary storage device Usability P/6…

    • 2090 Words
    • 9 Pages
    Good Essays
  • Powerful Essays

    Machine Translation

    • 1959 Words
    • 8 Pages

    2. Introduction of interfaces that act like glue and improve the modularity of the system…

    • 1959 Words
    • 8 Pages
    Powerful Essays

Related Topics