2 Pages

homework4Ans

Course: COMP 2070, Fall 2009
School: Allan Hancock College
Rating:
 
 
 
 
 

Word Count: 367

Document Preview

Operating NETS3304/3604 System Internals Homework 4 1. What resources are used when a thread is created? How do they differ from those used when a process is created? Answer: Because a thread is smaller than a process, thread creation typically uses fewer resources than process creation. Creating a process requires allocating a process control block (PCB), a rather large data structure. The PCB includes a memory...

Register Now

Unformatted Document Excerpt

Coursehero >> California >> Allan Hancock College >> COMP 2070

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.
Operating NETS3304/3604 System Internals Homework 4 1. What resources are used when a thread is created? How do they differ from those used when a process is created? Answer: Because a thread is smaller than a process, thread creation typically uses fewer resources than process creation. Creating a process requires allocating a process control block (PCB), a rather large data structure. The PCB includes a memory map, list of open files, and environment variables. Allocating and managing the memory map is typically the most time-consuming activity. Creating either a user or kernel thread involves allocating a small data structure to hold a register set, stack, and priority. 2. Provide two programming examples of multithreading giving improved performance over a single-threaded solution. Answer: (1) A Web server that services each request in a separate thread. (2) A parallelized application such as matrix multiplication where different parts of the matrix may be worked on in parallel. (3) An interactive GUI program such as a debugger where a thread is used to monitor user input, another thread represents the running application, and a third thread monitors performance. 3. Provide two programming of examples multithreading that would not improve performance over a single-threaded solution. Answer: (1) Many sequential programs are not good candidates to be threaded. An example of this is a program that calculates an individual tax return. (2) Another example is a "shell" program such as the C-shell or Korn shell. Such a program must closely monitor its own working space such as open files, environment variables, and current working directory. 4. Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process P1 P2 P3 P4 P5 Arrival time 0 2 4 6 8 Burst time 10 1 2 1 5 a. Draw three Gantt charts illustrating the execution of these processes using FCFS, non-...

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:

Allan Hancock College - COMP - 2070
COMP3520 Operating System InternalsHomework 51. Consider the following set of processes, with the length of the CPU-burst time given in seconds: Process P1 P2 P3 P4 P5 Arrival time 0 2 4 6 8 Burst time 10 1 2 1 5a. Draw three Gantt charts illustr
Allan Hancock College - COMP - 2070
COMP3520 Operating System InternalsHomework 51. Consider the following set of processes, with the length of the CPU-burst time given in seconds: Process P1 P2 P3 P4 P5 Arrival time 0 2 4 6 8 Burst time 10 1 2 1 5a. Draw three Gantt charts illustr
Allan Hancock College - COMP - 2070
COMP3520 Operating System InternalsHomework 61. What is the meaning of the term busy waiting? What other kinds of waiting are there in an operating system? Can busy waiting be avoided altogether? Explain your answer.2. The sleeping barber problem
Allan Hancock College - COMP - 2070
COMP3520 Operating System InternalsHomework 61. What is the meaning of the term busy waiting? What other kinds of waiting are there in an operating system? Can busy waiting be avoided altogether? Explain your answer. Answer: Busy waiting means that
Allan Hancock College - COMP - 2070
COMP3520 Operating System InternalsHomework 71. Write a bounded-buffer monitor in which the (int) buffers are embedded within the monitor itself. 2. Consider the following snapshot of a system: Allocation A B C D 0 0 1 2 1 0 0 0 1 3 5 4 0 6 3 2 0 0
Allan Hancock College - COMP - 2070
COMP3520 Operating System InternalsHomework 71. Write a bounded-buffer monitor in which the (int) buffers are embedded within the monitor itself. Answer: (suggested) monitor bounded_buffer { int items[MAX_ITEMS]; int numItems = 0; int pNext=0; int
Allan Hancock College - COMP - 2070
COMP3520 Operating System InternalsHomework 81. What is the relationship between FIFO and clock page replacement algorithms? 2. Why is it not possible to combine a global replacement policy and a fixed allocation policy? 3. A certain computer provi
Allan Hancock College - COMP - 2070
COMP35290 Operating System InternalsHomework 91. Explain the purpose of the open and close operations? What do open and close do?2. Some systems automatically open a file when it is referenced for the first time, and close the file when the job t
Allan Hancock College - COMP - 2070
COMP3520 Operating System InternalsHomework 101. Why might a system use interrupt-driven I/O to manage a single serial port, but polling I/O to manage a front-end processor which maintains a collection of serial ports? Answers: Polling can be more
Allan Hancock College - COMP - 2070
1. Draw a transition diagram of process state, Assuming at any given time each process is in one of five states, i.e., New Running, Waiting, Ready and Terminated. 2. What are the medium-term scheduler and its main difference from long-term scheduler?
Allan Hancock College - COMP - 2070
1. What are the differences among deadlock avoidance, detection, and prevention? 2. Consider a system with a total of 150 units of memory, allocated to three processes as shown: Process 1 2 3 Max requirements 70 60 60 Allocated 45 40 15Apply the ba
Allan Hancock College - COMP - 2070
UVA - ENAM - 358
ENAM 358: Guidelines for Group Project Spring 2008, Dr. LittleOverview: For this project, you and 3-4 of your classmates will locate, analyze, and lead your classmates in a 20-minute discussion of a piece of nineteenth-century fiction or non-fictio
Vanderbilt - MGT - 496
Information Technology and Internet Commerce (MGT 496A) Professor Sal MarchVoice over IP TechnologyCompany AnalysisChristopher Clark Karin Innerlohinger Kustini LimOctober 2, 2006Voice over IP and VonageMgt 496a Internet Technology and Int
Vanderbilt - MGT - 496
Salvatore T. MarchDavid K. Wilson Professor of Management Owen Graduate School of Management Vanderbilt University Nashville, TN 37203 January 2007 Contact InformationTel : Fax: E-mail: WWW: (615) 322-7043 (615) 343-7177 Sal.March@owen.vanderbilt.e
Vanderbilt - MGT - 496
Bhavik Shah2871 Summer Lawn Drive Clarksville, TN 37043 931-801-8456 bhavik.shah.2008@owen.vanderbilt.edu EDUCATION VANDERBILT UNIVERSITY OWEN GRADUATE SCHOOL OF MANAGEMENT Master of Business Administration, May 2008 Concentration: Marketing, Infor
Vanderbilt - MGT - 496
Bhavik Shah2871 Summer Lawn Drive Clarksville, TN 37043 931-801-8456 bhavik.shah.2008@owen.vanderbilt.eduEDUCATIONVANDERBILT UNIVERSITY OWEN GRADUATE SCHOOL OF MANAGEMENT Master of Business Administration, May 2008 Concentration: Marketing, Inf
Vanderbilt - MGT - 496
ERIC D. HEENAN211 Union Street, Apartment 808 Nashville, TN 37201 Mobile: 808-349-4191 eric.heenan.2007@owen.vanderbilt.edu_ _EDUCATION VANDERBILT UNIVERSITY OWEN GRADUATE SCHOOL OF MANAGEMENT Master of Business Administration, May 2007 Concentra
Vanderbilt - MGT - 496
Michael Wu632 Burges Drive, Nashville, TN 37209 (617) 938-8001 kuan-hsien.wu.2007@owen.vanderbilt.eduEDUCATIONVANDERBILT UNIVERSITY OWEN GRADUATE SCHOOL OF MANAGEMENT Nashville, TN Master of Business Administration, May 2007 Concentrations: Fina
Vanderbilt - MGT - 496
Michael Wu632 Burges Drive, Nashville, TN 37209 (617) 938-8001 kuan-hsien.wu.2007@owen.vanderbilt.eduEDUCATIONVANDERBILT UNIVERSITY OWEN GRADUATE SCHOOL OF MANAGEMENT Nashville, TN Master of Business Administration, May 2007 Concentrations: Fina
Vanderbilt - MGT - 496
CRISTINA T. BELL2526 Sharondale Drive, Apt A6 Nashville, TN 37215 Cristina.Bell.2007@owen.vanderbilt.edu Phone: (312) 339-8500 http:/www2.owen.vanderbilt.edu/mgt496a/CristinaBell/ EDUCATION VANDERBILT UNIVERSITY, OWEN GRADUATE SCHOOL OF MANAGEMENT N
Vanderbilt - MGT - 496
2526 Sharondale Drive, Apt A6 Nashville, TN 37215 Cristina.Bell.2007@owen.vanderbilt.edu Phone: (312) 339-8500 http:/www2.owen.vanderbilt.edu/mgt496a/CristinaBell/ EDUCATION VANDERBILT UNIVERSITY, OWEN GRADUATE SCHOOL OF MANAGEMENT Nashville, TN Mast
Vanderbilt - MGT - 496
DAVID WEINSTEIN2030 Club Parkway Nashville, TN 37221 615.673.6994 david.weinstein@owen.vanderbilt.eduEDUCATIONVANDERBILT UNIVERSITY OWEN GRADUATE SCHOOL OF MANAGEMENTNashville, TNMaster of Business Administration, May 2005 Concentrations: Op
Vanderbilt - MGT - 496
KEITH GARRAMONE1120 Oak Creek Drive Nolensville, TN 37135 (615) 491-0241 Keith.Garramone.2008@owen.vanderbilt.eduEDUCATIONVANDERBILT UNIVERSITY OWEN GRADUATE SCHOOL OF MANAGEMENT Master of Business Administration, May 2008 Concentrations: Financ
Vanderbilt - MGT - 496
Chathura (Chat) Manawadu920 Woodmont Boulevard, Apt D5 Nashville, Tennessee, 37204 615-579-5045 Chathura.Manawadu.2007@owen.vanderbilt.eduEDUCATIONVANDERBILT UNIVERSITY OWEN GRADUATE SCHOOL OF MANAGEMENT Master of Business Administration, May 20
Vanderbilt - MGT - 496
Management 496a Information Technology and Electronic CommerceOwen Graduate School of Management Vanderbilt University Spring 2006 Mod I Course Syllabus Sal March 316 Owen Graduate School of Management 322-7043 (office) E-mail: Sal.March@Owen.Vander
Vanderbilt - MGT - 496
SHARRAN SRIVATSAA'S RESUME
UCSC - AMS - 212
AMS 212B Perturbation Methods Lecture 13 Copyright by Hongyun Wang, UCSC Using WKB expansions in eigenvalue problems (to find large eigenvalues) Example: Consider the eigenvalue problemy + 2 (1+ x 2 ) y = 0 y (0) = 0 , y (1) = 02Recall the WKB e
Michigan - UP - 402
Kara Huizdos Conception Formation Lesson Plan Revision Lesson Title: Behind the Scenes of the Vietnam War Course: Minority Perspectives- U.S. History (Grades 9-12) Unit of Study: Critical Perspectives of the 1960's Abstract: The purpose of this lesso
Michigan - UP - 402
Kara Huizdos Inquiry Lesson Plan Lesson Title: "Segregation now! Segregation tomorrow! Segregation forever!" Bull Connor (1963)Course: Minority Perspectives- U.S. History (Grades 9-12) Unit of Study: Critical Perspectives of the 1960's Abstract: H
Michigan - UP - 402
Lesson Title: Have their dreams been realized? Course: Minority Perspectives / 9-12th Grade (Alternative to traditional U.S. History) Unit of Study: Critical Perspectives of 1960's Abstract President John F. Kennedy, the Reverend Martin Luther King,
Michigan - UP - 402
Lesson Title: On Music and Culture in the 1960s Course: Minority Perspectives / 9-12th Grade (Alternative to traditional U.S. History) Unit of Study: Critical Perspectives of 1960's Abstract Some music of the 1960s was a social commentary and vehicle
Michigan - UP - 402
Value-Based Lesson Plan Lesson Title: A Nation Divided Course: Minority Perspectives / 9-12th Grade (Alternative to traditional U.S. History) Unit of Study: Critical Perspectives of 1960's Abstract In this lesson students participate in a discussion
Michigan - UP - 402
http:/www.rochester.k12.mi.us/file_repository/Stoney_Creek_High_School_Boundary.p df
Michigan - UP - 402
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|05 Dec 2002 22:47:00 -0000 vti_extenderversion:SR|4.0.2.8912 vti_cacheddtm:TX|05 Dec 2002 22:47:00 -0000 vti_filesize:IR|47104 vti_cachedlinkinfo:VX|H| http:/www.cedarville.edu/dept/ed/resource/schools/
Michigan - UP - 402
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|05 Dec 2002 22:47:00 -0000 vti_extenderversion:SR|4.0.2.8912 vti_cacheddtm:TX|05 Dec 2002 22:47:00 -0000 vti_filesize:IR|38912 vti_cachedlinkinfo:VX| vti_cachedsvcrellinks:VX| vti_cachedtitle:SR|(Finish
Michigan - UP - 402
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|05 Dec 2002 23:11:00 -0000 vti_extenderversion:SR|4.0.2.8912 vti_cacheddtm:TX|05 Dec 2002 23:11:00 -0000 vti_filesize:IR|25600 vti_cachedlinkinfo:VX| vti_cachedsvcrellinks:VX| vti_cachedtitle:SR|Lesson
Michigan - UP - 402
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|05 Dec 2002 23:08:00 -0000 vti_extenderversion:SR|4.0.2.8912 vti_cacheddtm:TX|05 Dec 2002 23:08:00 -0000 vti_filesize:IR|27136 vti_cachedlinkinfo:VX| vti_cachedsvcrellinks:VX| vti_cachedtitle:SR|Lesson
Michigan - UP - 402
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|05 Dec 2002 22:48:00 -0000 vti_extenderversion:SR|4.0.2.8912 vti_cacheddtm:TX|05 Dec 2002 22:48:00 -0000 vti_filesize:IR|45056 vti_cachedlinkinfo:VX|H| http:/www.usnewsclassroom.com/resources/activities
Michigan - UP - 402
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|09 Oct 2002 22:34:00 -0000 vti_extenderversion:SR|4.0.2.8912 vti_cacheddtm:TX|09 Oct 2002 22:34:00 -0000 vti_filesize:IR|19456 vti_cachedlinkinfo:VX| vti_cachedsvcrellinks:VX| vti_cachedtitle:SR|http:/w
Vanderbilt - MGT - 496
WEEK 1Surplus Car SuppliesHYPOTHESIS: Provide low-cost service, car wash coupons and productcombination, car wash accessories and car products, which capture target market and provide sustainable advantage. <Target Market> Vehicle Owners - everyo
Vanderbilt - MGT - 496
JONATHON CHRISTOPHER NEIL3600 Hillsboro Pike #G-16 Nashville, TN 37215 (Cell) 202-294-3058 Jonathon.Neil.2008@owen.vanderbilt.eduEDUCATION VANDERBILT UNIVERSITY OWEN GRADUATE SCHOOL OF MANAGEMENT Masters of Business Administration, May 2008 Concent
UMBC - CMSC - 628
Network Working Group C. Perkins, EditorRequest for Comments: 2002 IBMCategory: Standards Track October 1996
Oregon - PH - 351
Earthquakes, Aftershocks and Seismic Waves An earthquake results from slow build up of strain (deformation) in rock, usually caused by the relative motion of adjacent plates. When a fault or volume of rock can no longer resist movement, the stored
San Jose State - AVIA - 177
ICAOWho remembers what ICAO stand for?Aviation 177Chapter 1 September 10, 2007September 12, 2007ICAOInternational Civil Aviation OrganizationICOA TasksInitially started in 1944 & officially ratified in 1947 Ensure the safe, efficient and
San Jose State - AVIA - 177
NeedsDetermining The NeedAviation 177 Fall 2007 Chapter 2Frequently individuals searching for ondemand air travel don't do enough research to find the most cost-effective and useful alternativeNeedsAt some point travel arrangements become so
San Jose State - AVIA - 177
Policy ManualChapter 3 Getting StartedOctober 1, 2007Before you purchase an aircraft, create a policy manual for its useHow the aircraft is to be used Who can use it How to schedule it Special cases Operating restrictionsPolicy ManualPurpose
San Jose State - AVIA - 177
Schedule 10-29-07Review Midterm this Wed. TodayReview 2 handouts Start chapter 4Chapter 4Running The BusinessOctober 29, 2007Run It Like A BusinessYou Call We Haul mentality Many flight departments fail to operate like a businessSell Produc
San Jose State - AVIA - 177
Table 1.12005 GENERAL AVIATION AND AIR TAXI NUMBER OF AIRCRAFT BY PRIMARY USE BY AIRCRAFT TYPE General Aviation Use On-Demand FAR Part 135 UseAIRCRAFT TYPETotal Active 185,373 1.4 167,608 1.8 148,101 1.9 19,412 1.2 95 2.1 7,942 0.3 2,595 0.3 5,
San Jose State - AVIA - 177
OperationsOperationsAviation 177 SJSU Fall 2007Flight Department a service provider much like H.R., I.T., etc Safety paramountAt least as safe as airlines To get there have standards at least as stringent as airlines Culture of safety within de
San Jose State - AVIA - 177
FEDERAL ELECTION CAMPAIGN LAWSCompiled byTHE FEDERAL ELECTION COMMISSIONOCTOBER 2005FEDERAL ELECTION CAMPAIGN LAWSCompiled byTHE FEDERAL ELECTION COMMISSIONOCTOBER 2005THE FEDERAL ELECTION COMMISSIONWashington, D.C. 20463COMMISSIONER
Penn State - CJS - 172
Introduction The application of this design involves a rocket probe, which is used to measure the current of charge collected in the atmosphere. The design is centered on developing a circuit using op amps to convert the current into a form that a te
Michigan - PUMS - 1990
STATE: 02 PUMA: 00101 MSA/PMSA: 0380 TYPE OF AREA: CENTRAL CITY PART NAME POPULATION ST COU MCD PLACE TRACT MSA/PMSA Anchorage city (part) 4218 02 020 025 0140 000101 0380 Anchorag
Michigan - PUMS - 1990
COMPONENTS OF 1% SAMPLE PUMAs STATE: 01 PUMA: 00100 MSA/PMSA: 2650 TYPE OF AREA: ENTIRE MSA NAME POPULATION ST COU MCD PLACE TRACT MSA/PMSA Colbert County 51666 01 033
Michigan - PUMS - 1990
STATE: 05 PUMA: 00100 MSA/PMSA: 2580 TYPE OF AREA: ENTIRE MSA NAME POPULATION ST COU MCD PLACE TRACT MSA/PMSA Washington County 113409 05 143 2580 TOTAL POPULATI
Michigan - PUMS - 1990
STATE: 04 PUMA: 00101 MSA/PMSA: 6200 TYPE OF AREA: CENTRAL CITY (PART) & OUTSIDE CENTRAL CITY (PART) NAME POPULATION ST COU MCD PLACE TRACT MSA/PMSA Phoenix city (part) 5484 04 013 015
Michigan - PUMS - 1990
STATE: 08 PUMA: 00101 MSA/PMSA: 2080 TYPE OF AREA: CENTRAL CITY PART NAME POPULATION ST COU MCD PLACE TRACT MSA/PMSA Denver city (part) 2934 08 031 005 0320 000101 2080 Denver c
Michigan - PUMS - 1990
STATE: 09 PUMA: 00100 MSA/PMSA: 9997 TYPE OF AREA: MIXED MSA/PMSA/NON-MSA/PMSA AREA NAME POPULATION ST COU MCD PLACE TRACT MSA/PMSA New Hartford Center CDP 1269 09 005 1430
Michigan - PUMS - 1990
STATE: 11 PUMA: 00101 MSA/PMSA: 8840 TYPE OF AREA: CENTRAL CITY PART NAME POPULATION ST COU MCD PLACE TRACT MSA/PMSA Washington city (part) 4706 11 001 100 0005 000100 8840 Washingt
Michigan - PUMS - 1990
STATE: 13 PUMA: 00100 MSA/PMSA: 0520 TYPE OF AREA: MSA/PMSA - OUTSIDE CENTRAL CITY (PART) NAME POPULATION ST COU MCD PLACE TRACT MSA/PMSA Clayton County 182052 13 063
Michigan - PUMS - 1990
STATE: 15 PUMA: 00100 MSA/PMSA: 9999 TYPE OF AREA: OUTSIDE MSA/PMSA NAME POPULATION ST COU MCD PLACE TRACT MSA/PMSA Hawaii County 120317 15 001 9999 TOTAL PO