3 Pages

Midterm1+s03

Course: CS 6360, Fall 2009
School: U. Houston
Rating:
 
 
 
 
 

Word Count: 793

Document Preview

6360 FIRST COSC MIDTERM FEBRUARY 12, 2003 This exam is closed book. You can have one sheet (i.e., two pages) of notes. Please answer every part of every question 1. Match each of the following UNIX features with the function it performs: (102 points) (Hint: Some of the choices offered are plain wrong.) pipe i-node special files valid bit stream __l__ __b__ __a__ __j__ __i__ fork() exec() superblock lseek()...

Register Now

Unformatted Document Excerpt

Coursehero >> Texas >> U. Houston >> CS 6360

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
6360 FIRST COSC MIDTERM FEBRUARY 12, 2003 This exam is closed book. You can have one sheet (i.e., two pages) of notes. Please answer every part of every question 1. Match each of the following UNIX features with the function it performs: (102 points) (Hint: Some of the choices offered are plain wrong.) pipe i-node special files valid bit stream __l__ __b__ __a__ __j__ __i__ fork() exec() superblock lseek() indirect block __d__ __k__ __e__ __g__ __c__ a) Allow programs to read from and write to physical devices. b) Contains most file attributes. c) Contains addresses of other blocks. d) Creates a new process. e) Describes the contents of a disk partition. f) Implements a Windows NT 4.0 API. g) Modifies the position of the next byte to be accessed in an opened file. h) Provides a fast but unreliable method to transfer data over the Internet. i) Provides a reliable method to transfer data over the Internet. j) Sometimes used to simulate the page referenced bit. k) Loads in memory the program to be executed by a given process. l) Used to send the standard output of a program to the standard input of another one. 2. Assume that your are doubling the memory size of a workstation running Berkeley UNIX. How should that affect the optimal angle between the two hands of the UNIX page replacement policy? (5 points) Keeping the angle constant would double the number of page frames included in that scan. Since there would be less pages being expelled, the two hands of the clock would also move more slowly. This means that keeping the angle unchanged would result in keeping unused pages for too long. I would thus halve the angle. 3. Describe in some detail the page replacement policy of VMS(10 points minus 4 points if no diagram) and explain its main respective advantage and disadvantage (25 points) VMS page replacement policy combines some aspects of FIFO and least recently used. VMS assigns to each process a fixed size partition called the process' working set and uses a FIFO replacement policy to manage it. Pages that are expelled from a working set are put at the end of a large global queue of pages waiting to be expelled from main memory. These pages are also marked invalid in the page tables of their respective processes. Every time a page fault occurs, VMS scans first this global queue before attempting to bring the missing page from secondary storage. Process Process Process Process Process Global Queue Advantages: The mechanism approximates LRU quite well that provided (a) enough pages are allocated to the process working sets to keep the number of false page faults under control, and (b) the global queue is large enough to allow the rescue of pages that had been erroneously expelled from the working set of their process. In addition, it supports real-time processes. Disadvantages: It does not work well if processes have memory requirements that change over time 4. Consider a Mach process consisting of a code segment, a data segment, a mapped file and a shared memory segment. What should be the inheritance attribute of a) its code segment? (5 points) __________________________________________share b) its data segment? (5 points) ___________________________________________copy c) its mapped file? (5 points) ___________________________________________share d) its shared memory segment? (5 points) _________________________________share Assume now that we want to create another thread within the address space of that process. What do we need to change before forking that thread? (5 points) Make the inheritance attribute of the data segment share. 5. Consider a clustered page table interacting with a TLB implementing subblocking. Assuming a subblocking factor of 4 and 64 bit addresses, what would be the size of the page table entry assuming that: a) the TLB implements full subblocking? (5 points) ________________ 6x8=48 bytes (one VPN, four PPN and one next pointer, all 8-byte long) b) the TLB implements partial subblocking? (5 po...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

U. Houston - CS - 6360
COSC 6360MIDTERMFEBRUARY 27, 2002This exam is closed book. You can have one sheet (i.e., two pages) of notes. Please answer every part of every question 1. Explain how you could use an exokernel to support multiple user interfaces on the same m
U. Houston - CS - 6360
UNIVERSITY OF HOUSTON Department of Computer Science COSC 6360-Operating Systems FINAL PART I December 12, 1989Be concise but complete. The exami
U. Houston - CS - 6360
UNIVERSITY OF HOUSTON Department of Computer Science COSC 6360-Operating Systems MIDTERM EXAMINATION March 8, 1
U. Houston - CS - 6360
UNIVERSITY OF HOUSTON Department of Computer Science COSC 6360-Operating Systems MIDTERM April 2, 1992Be concise but complete.1. W
U. Houston - CS - 6375
g+ -DCPP $* /usr/lib/libcsimcpp.a -lm
U. Houston - CS - 6360
UNIVERSITY OF HOUSTON Department of Computer Science COSC 6360: Operating Systems FINAL EXAMINATION Part I: General Questions QUALIFYING EXAMINATION
U. Houston - CS - 6360
UNIVERSITY OF HOUSTON Department of Computer Science COSC 6360-Operating Systems QUALIFYING EXAMINATION Graduate Part
U. Houston - CS - 6360
UNIVERSITY OF HOUSTON Department of Computer Science COSC 6360-Operating Systems MIDTERM EXAMINATION March 28, 1
U. Houston - CS - 6360
UNIVERSITY OF HOUSTON Department of Computer Science COSC 6360: Operating Systems MIDTERM March 21, 1991CLOSED BOOK. You may have wit
U. Houston - CS - 6360
COSC 6360MIDTERMOCTOBER 23, 2002This exam is closed book. You can have one sheet of notes. Cheaters will be expelled from UH. Answers that are not specific to the question being asked will not be read. 1. Spring treats the thread issuing a cros
U. Houston - CS - 4330
CHAPTER III SCHEDULING3.1 INTRODUCTION The scheduler is the part of the operating system that decides how to allocate the CPU and the main memory to the processes. a) The CPU scheduler decides which process should get the CPU; it is also called sho
U. Houston - CS - 4330
COSC 4330FINALDECEMBER 18, 2002This exam is closed book. You can have one page of notes. UH expels cheaters.1. True or False: (102 points; no penalty for incorrect answers) T _ F X_ T _ F X_ T _ F X_ T X_ F _ T X_ F _ T X_ F _ T _ F X_ T X_ F
U. Houston - CS - 6360
NAME: _ (FIRST NAME FIRST) SCORE: _ COSC 6360 SECOND MIDTERM OCTOBER 26, 2006THIS EXAM IS CLOSED BOOK. YOU CAN HAVE ONE SHEET (I.E., TWO PAGES) OF NOTES. 1. Explain why Spin is (a) more extensible than Unix, (b) more efficient than Mach and (c) saf
U. Houston - CS - 6360
UNIVERSITY OF HOUSTON Department of Computer Science COSC 6360-Operating Systems QUALIFYING EXAMINATION Graduate
U. Houston - CS - 3480
Spatial Data Management and Design and Creation of a Database for this PurposeCOSC 3480 Lab5Last updated: March 29, 2006Project # 5 (total score =300) Deadlines: April 13. 10a: Submit status report in class (the report should outline what you p
U. Houston - CS - 6367
Quadratic Programming Solutions of the Transportation ProblemJustin Thomas The following solutions were derived using the quadprog Matlab function. This quadratic programming function is only available with the Optimization Toolkit.Problem 1 F2 C
U. Houston - CS - 6367
Documentation of XCSFJava 1.1 plus VisualizationMartin V. Butz MEDAL Report No. 2007008 July 2007 AbstractThis report gives an overview of the XCSFJava 1.1 code, available from the web. The document species where to get the code and how to compile
U. Houston - CS - 4368
U. Houston - CS - 6367
What is an Evolutionary Algorithm?Chapter 2A.E. Eiben and J.E. Smith, What is an Evolutionary Algorithm? With Additions and Modifications by Ch. EickContents Recapof Evolutionary Metaphor Basic scheme of an EA Basic Components: Representa
U. Houston - CS - 6367
Numerical OptimizationsGeneral Framework: objective function f(x1,.,xn) to be minimized or maximized constraints: gi(x1,.,xn) leq/eq 0 (i=1,.,m) xi >= 0 i=1,.,n (optional)sApproaches: Classical: Differentiate the function and find points w
U. Houston - CS - 4368
Assignment 3 Dr. Eick's COSC 4368 Spring 2008 Theorem Proving and Reasoning in Uncertain EnvironmentsDue dates: Problems 11,12, 14: Saturday, April 26, 9p Problem 10: Submit 12page report by Mo., April 28, noon; be prepared to demo your program on
U. Houston - CS - 6367
Quiz1 COSC 6367 Evolutionary Programming Tu., Feb. 20, 2007Your Name: Your SSN:Problem 1 - Selection and Survival of the Fittest [11]: Problem 2 - ES and Rechenberg's Rule [8] Problem 3 - Crossover and Mutation [9] Problem 4 - Genetic Programming
U. Houston - CS - 4368
Grades 4368 in Spring 2008 MT1 MT2 Final Weighted-Exam Average 4368-Grade 1644 80 70 66 70.94 C+hell 80 69 60 67.95 C+0281 81 89 83 84.10 B+
U. Houston - CS - 6340
2005 Exams COSC 6340 Number GradesIDENT EX0 MT FINAL3175 89 909111 83 86smvb 88 931979 83 771818 71 -abab 90 740102 85
U. Houston - CS - 3480
Grading COSC 3480 Fall 2005 CodeName EX1 EX2 FIN PRO Score Grade qlwr 75 80 66 74 72.86 C+ XTRM 87 90 75 86 83.6 B+ IECO 96 92 98 100 97.24
U. Houston - CS - 4350
Dr. Christoph F. Eick COSC 4350 ASSIGNMENTS Spring 1997 Remark: The file will be
U. Houston - CS - 3480
Computation of the Overall Score COSC 3480P0' = P0*5 - 5P1' = if P1>93 then 2*P1 - 100 else 0.8*P1 + 12P2' = 1.5*P2 + 12P3' = if P3>93 then 2*P3 - 100 else 0.8*P3 + 12H' = H+3
U. Houston - CS - 6367
Review List Final Exam COSC 6367:The final exam is scheduled for Th., May 10, 2-4p in our class room and will be "open everything"; at least 80% of the material covered in the exam will center on material that was covered in the COSC 6367 lecture
U. Houston - CS - 6367
Learning Classifier Systems: A Brief IntroductionLarry BullFaculty of Computing, Engineering & Mathematical Sciences University of the West of England Bristol BS16 1QY, U.K. Larry.Bull@uwe.ac.uk[Learning] Classifier systems are a kind of rule-bas
U. Houston - CS - 4368
Uncertainty Management1. Fuzzy Logic 2. Dempster/Shafer's Theory of evidence 3. Interval Approaches1Fuzzy SetLet X denote a space of objects. definition: A fuzzy set A in X is a set of ordered pairs A = {(x, A (a)}, xX where A (x) is termed the
U. Houston - CS - 6367
Optimal Solutions to Dr. Eick's Linear Programming ProblemsPaul J. Ledbetter III February 15, 2007In the forthcoming project for Dr. Eick's Evolutionary Programming class, our goal is to minimize the total cost for a particular transportation probl
U. Houston - CS - 4368
Artificial Intelligence: Its Roots and Scope1.1 From Eden to ENIAC: Attitudes toward intelligence, Knowledge, and Human Artifice 1.2 Overview of AI Application Areas 1.3 1.4 1.5 Artificial Intelligence A Summary Epilogue and References ExercisesG
U. Houston - CS - 4368
Artificial Intelligence Programming COSC 4368 Midterm Exam1 Solution Sketches Tuesday, February 26, 2008Name: SSN:1.Curve: round (79.5+ (9.5/6*(x29.5)Best First Search and A* (8 points) 2. Backtracking (8 points) 3. Playing Games (8 points) 4.
U. Houston - CS - 6367
Quiz1 COSC 6367 Evolutionary Programming Th. Feb. 21, 2008 Solution DraftYour Name: Your SSN:Problem 1 - Selection and Survival of the Fittest [14]: Problem 2 - ES [10] Problem 3 - Crossover and Mutation [10] Problem 4 - Genetic Programming [9] Pr
U. Houston - COSC - 4377
COSC 4377, Fall 200011/27/00LAN Addresses and ARPIP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node LAN interface s card (adapter card) on the local LAN 48 bit MAC a
U. Houston - COSC - 4377
Slides from TCP/IP - ForouzanChapter 16DNS Name Space Domain Name Space Distribution of Name Space DNS in the Internet Resolution DNS Messages Types of Records CompressionCOSC 6377 - Fall 2000 16-1Forouzan NotesFigure 16-1Domain na
U. Houston - COSC - 4377
Slides from TCP/IP - ForouzanChapter 4IP Addressing Decimal Notation Classes Special Addresses A Sample Internet Unicast, Multicast, and Broadcast Addresses Applying for IP Addresses Private NetworksCOSC 6377 - Fall 2000 4-1Forouzan Not
U. Houston - COSC - 4377
COSC 4377, Fall 200011/20/00Link Layer Protocols1Link Layer Services Framing and link access: m encapsulate datagram into frame adding header and trailer, m implement channel access if shared medium, m` physical addresses'are used in frame h
U. Houston - COSC - 4377
COSC 4377, Fall 200011/2/00Routing in the InternetThe Global Internet consists of Autonomous Systems (AS) interconnected with each other:r r rStub AS: small corporation Multihomed AS: large corporation (no transit) Transit AS: providerT
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Socket Programming1/29/01Socket programmingGoal: learn how to build client/server application that communicate using sockets Socket API introduced in BSD4.1 UNIX,socketa host-local, applicationcreated/owned, OS-contr
U. Houston - COSC - 4377
COSC 4377, Spring 2001, RPC - Supplement2/27/01Remote Procedure CallOutlineProtocol Stack Presentation Formattingbased on section 5.3 of Peterson & Davies bookPeterson & Davie 1RPC TimelineClientReque stServer BlockedBlockedReplyC
U. Houston - COSC - 4377
COSC 4377, Fall 2000 - Chapter 3a10/10/00Chapter 3: Transport LayerChapter goals: understand principlesChapter Overview:behind transport layer services:r transport layer services multiplexing/demultiplexing connectionless transport: UD
U. Houston - COSC - 4377
COSC 4377, Fall 200011/27/00Hubs, Bridges, and Switches (oh my)Used for extending LANs in terms of geographical coverage, number of nodes, administration capabilities, etc. Differ in regards to:r rcollision domain isolation layer at which t
U. Houston - COSC - 4377
Slides from TCP/IP - ForouzanChapter 24Socket Interface Sockets Socket System Calls Connectionless Iterative Server UDP Client-Server Programs Connection-Oriented Concurrent Server TCP Client-Server ProgramsForouzan NotesCOSC 6377 - Fal
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 4b4/4/01IP datagram formatIP protocol version number header length (bytes) "type" of data max number remaining hops (decremented at each router) upper layer protocol to deliver payload to 32 bits ver head. type o
U. Houston - COSC - 4377
Slides from TCP/IP - ForouzanChapter 5Subnetting and Supernetting Subnetting Masking Examples of Subnetting Variable-Length Subnetting SupernettingForouzan NotesCOSC 6377 - Fall 20005-1Figure 5-1A network with two levels of hierarc
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 2, Part A9/18/01chapter 2: Application LayerChapter goals:conceptual + implementation aspects of network application protocols m client server paradigm m service models r learn about protocols by examining popul
U. Houston - COSC - 4377
COSC 4377, Spring 20011/24/01Protocol "Layers"Networks are complex! many "pieces": r hosts r routers r links of various media r applications r protocols r hardware, softwareIs there any hope of organizing structure of network? Or at least our
U. Houston - COSC - 4377
COSC 4377, Spring 20011/22/01Part I: IntroductionChapter goal: get context, overview, "feel" of networking more depth, detail later in course approach: r descriptive r use Internet as example Overview: what' the Internet s what' a protocol?
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 5b4/4/01LAN technologiesData link layer so far:rNext: LAN technologiesrservices, error detection/correction, multiple accessaddressing r Ethernet r hubs, bridges, switches r 802.11 r PPP r ATM5: DataLink
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 2, Part A1/29/01Chapter 2: Application LayerChapter goals: conceptual +implementation aspects of network application protocolsrMore chapter goals specific protocols:r r r r rhttpclient server paradigm
U. Houston - COSC - 4377
COSC 4377, Fall 2000 - Chapter 3b10/24/00TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581point-to-point:rone sender, one receiverfull duplex data:rreliable, in-order byte steam:rrpipelined:rno message boundaries TCP conges
U. Houston - COSC - 4377
COSC 4377, Fall 2000 - Chapter18/29/00Part I: IntroductionChapter goal: get context, overview, feel of networking more depth, detail later in course approach: r descriptive r use Internet as example Overview: what the Internet s what a prot
U. Houston - COSC - 4377
COSC 4377, Fall 2000 - Chapter 4a10/26/00Chapter 4: Network LayerChapter goals: understand principlesChapter Overview:behind network layer services:r r r r network layer services routing principle: path instantiation androuting (pat
U. Houston - COSC - 4377
COSC 4377, Spring 20018/29/01Part I: IntroductionChapter goal: r get context, overview, "feel" of networking r more depth, detail later in course r approach: m descriptive m use Internet as example Overview: r what' the Internet s r what' a prot
U. Houston - COSC - 4377
COSC 4377, Fall 2000 - Chapter 2 Part B9/25/00DNS: Domain Name SystemPeople: many identifiers:rSSN, name, Passport #Domain Name System: distributed databaseInternet hosts, routers:rrIP address (32 bit) used for addressing datagrams
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 74/24/01Chapter 7: Network securityFoundations: Security in practice:what is security? cryptography authentication message integrity key distribution and certificationapplication layer: secure e-mail
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 5a4/4/01Chapter 5: The Data Link LayerOur goals: understand principlesOverview:behind data link layer services:r link layer services error detection, correction multiple access protocols andrr rer
U. Houston - COSC - 4377
Part I : I ntroductionC hapte goal: r ge conte ove w, "fe l" t xt, rvie e of ne tworking m de ore pth, de late in tail r course approach: r de scriptive r useI nte t as e rne xam ple Ove w: rvie what's theI nte t rne what's a protocol? ne twor
U. Houston - COSC - 4377
Errata=We all occasionally make mistakes. We're proud of the quality of ourtextbook, but in a first edition book with more than 700 pages, a coupleof typos are bound to slip in. The errata below lists the mistakes thatwe'll fix in the next pr
U. Houston - COSC - 6377
COSC 6377, Fall 200011/2/00HTTP Protocol, Proxy,andCOSC 6377 Term Project TutorialT. Mark Huang http:/www.cs.uh.edu/~jsteach/cosc6377/The Web: the http protocolhttp: hypertext transfer protocol Web application layer s protocol client/ser