Solutions for the First Quiz COSC 6360 Spring 2014.

Slides:



Advertisements
Similar presentations
Slide 2-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 2 Using the Operating System 2.
Advertisements

Chapter 4 : File Systems What is a file system?
MACHINE-INDEPENDENT VIRTUAL MEMORY MANAGEMENT FOR PAGED UNIPROCESSOR AND MULTIPROCESSOR ARCHITECTURES R. Rashid, A. Tevanian, M. Young, D. Golub, R. Baron,
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
Day 27 File System. UNIX File Management Types of files Ordinary – stream of bytes Directory – list of names plus pointers to attributes of the entry.
Today From threads to file systems
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
File System Implementation: beyond the user’s view A possible file system layout on a disk.
Operating Systems File Systems (in a Day) Ch
Introduction to Kernel
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
CS-3013 & CS-502, Summer 2006 Review Topics1 CS-3013 & CS-502 Operating Systems.
Ceng Operating Systems
6/24/2015B.RamamurthyPage 1 File System B. Ramamurthy.
7/15/2015B.RamamurthyPage 1 File System B. Ramamurthy.
File Systems (1). Readings r Silbershatz et al: 10.1,10.2,
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems David Goldschmidt, Ph.D.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
Chapter 8. Disks and Filesystems. Ordinary Files u What is a file? –a container for ordered data –persistent (stays around) and accessible by name u Unix.
1Fall 2008, Chapter 11 Disk Hardware Arm can move in and out Read / write head can access a ring of data as the disk rotates Disk consists of one or more.
Problems discussed in the review session for the final COSC 4330/6310 Summer 2012.
File System Implementation Chapter 12. File system Organization Application programs Application programs Logical file system Logical file system manages.
Chapter VIIII File Systems Review Questions and Problems Jehan-François Pâris
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Memory: Relocation.
Files & File system. A Possible File System Layout Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
A FAST FILE SYSTEM FOR UNIX Marshall K. Mckusick William N. Joy Samuel J. Leffler Robert S. Fabry CSRG, UC Berkeley.
Unix File Access Unix file access is accomplished via a series of tables Process file table System file table v-nodes (sometimes i-nodes)
UNIX File System (UFS) Chapter Five.
File Systems. 2 What is a file? A repository for data Is long lasting (until explicitly deleted).
I MPLEMENTING FILES. Contiguous Allocation:  The simplest allocation scheme is to store each file as a contiguous run of disk blocks (a 50-KB file would.
Solution to the Fall 2012 Second COSC 6360 Quiz Jehan-François Pâris
Linux File system Implementations
1 File Management Chapter File Management File management system consists of system utility programs that run as privileged applications Input to.
Operating Systems, Spring 2003 Local File Systems in UNIX Ittai Abraham Zinovi Rabinovich (recitation)
Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Chapter 6 File Systems. Essential requirements 1. Store very large amount of information 2. Must survive the termination of processes persistent 3. Concurrent.
11.1 Silberschatz, Galvin and Gagne ©2005 Operating System Principles 11.5 Free-Space Management Bit vector (n blocks) … 012n-1 bit[i] =  1  block[i]
Solutions for the First Quiz COSC 6360 Fall 2014.
File Systems.  Issues for OS  Organize files  Directories structure  File types based on different accesses  Sequential, indexed sequential, indexed.
MINIX Presented by: Clinton Morse, Joseph Paetz, Theresa Sullivan, and Angela Volk.
File Management Chapter File Management File management system consists of system utility programs that run as privileged applications Input to.
File System Department of Computer Science Southern Illinois University Edwardsville Spring, 2016 Dr. Hiroshi Fujinoki CS 314.
Operating Systems, Winter Semester 2011 Practical Session 11 File Systems, part 1 1.
Day 28 File System.
File-System Management
File Management Chapter 12.
Introduction to Kernel
Chapter 11: File System Implementation
Chapter 12: File System Implementation
FileSystems.
Chapter 9: Virtual Memory
Day 27 File System.
Filesystems.
KERNEL ARCHITECTURE.
Lecture 45 Syed Mansoor Sarwar
Operation System Program 4
Practical Session 11 File Systems & Midterm 2013
File System B. Ramamurthy B.Ramamurthy 11/27/2018.
Chapter 12 File Management
Virtual Memory CSCI 380: Operating Systems Lecture #7 -- Review and Lab Suggestions William Killian.
CSE451 - Section 10.
Operating Systems Lecture 1.
Introduction to Operating Systems
CSCI 380: Operating Systems William Killian
Chapter VIIII File Systems Review Questions and Problems
Last section! Project 4 + EC due tomorrow Today: Project 4 questions
CSE451 - Section 10.
Department of Computer Science
Presentation transcript:

Solutions for the First Quiz COSC 6360 Spring 2014

First question Match each of the following features with the single sentence that describes it best:

pipes  Forward the standard output of a process to the standard input of another one.

special files Actually represent hardware devices.

file systems Are the UNIX equivalents of Windows disk partitions. Will also accept: Contain both data blocks and i-node blocks.

symbolic links Allow a directory entry to refer to a file located in a different file system.

superblocks Describe the contents of a given file system.

synchronous updates Used to guarantee the correct serial execution of metadata updates.

cylinder groups Contain both data blocks and i-node blocks.

bit maps Keep track of free blocks on disk.

fork() Creates a new process.

exec() Loads in memory the new program to be executed by a given process.

UNIX file system In a 64-bit UNIX file system, what is the minimum block size that would allow users to access X GB using two levels of indirection?  Hint: use trial and error

Answer Block Size = 8KB  with two levels of indirection we can access 1K×1K×8 KB = 8 GB Block Size = 16KB  with two levels of indirection we can access 2K×2K×16KB = 64 GB Block Size = 32KB  with two levels of indirection we can access 4K×4K×32KB = 512 GB

UNIX directory structure What does UNIX do to avoid loops in its directory structure?

Answer To avoid loops in directory structure, directory files cannot have more than one pathname

Mach shared libraries In the Mach virtual memory system, what type of memory object is associated with a dynamic library?

Answer Since Mach implements shared libraries through the mapped file interface, the memory object associated with a shared library is a file

Mach threads How does Mach specify that the children of a given process should be regular processes or threads?

Answer By setting the inheritance attribute of the address map entry for the data segment to  COPY before creating a regular process  SHARED before creating a thread

Mach VM implementation How does Mach prevent deadlocks in its virtual memory system?

Answer To prevent deadlocks, all algorithms gain locks using the same ordering.