亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? homework #2.htm

?? operating system concepts sixth edition windows XP updat 操作系統課后答案
?? HTM
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0055)http://www.cse.ucsd.edu/classes/fa02/cse120/hw/hw2.html -->
<HTML><HEAD><TITLE>CSE 120 (Fall 2002) -- Homework #2</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY>
<H2>CSE 120 (Fall 2002) -- Homework #2</H2><FONT color=blue size=+1><B>Out: 
10/15</B></FONT><BR><FONT color=red size=+1><B>Due: 10/24</B></FONT> 
<OL>
  <LI>Chapter 4: 4.3 
  <P>4.3&nbsp; A DECSYSTEM-20 computer has multiple register sets. Describe the 
  actions of a context switch if the new context is already loaded into one of 
  the register sets. What else must happen if the new context is in memory 
  rather in a register set, and all of the register sets are in use? 
  <P></P>
  <LI>Chapter 5: 5.1, 5.2, 5.3 
  <P>5.1&nbsp; Provide two programming examples of multithreading that improve 
  performance over a single-threaded solution. 
  <P>5.2&nbsp; Provide two programming examples of multithreading that do 
  <I>not</I> improve performance over a single-threaded solution. 
  <P>5.3&nbsp; What are the differences between user-level threads and 
  kernel-level threads? Under what circumstances is one type better than the 
  other? 
  <P></P>
  <LI>Chapter 6: 6.8, 6.10 
  <P>6.8&nbsp; Many CPU scheduling algorithms are parameterized. For example, 
  the RR algorithm requires a parameter to indicate the time slice. Multilevel 
  feedback queues require parameters to definte the number of queues, the 
  scheduling algorithms for each queue, the criteria used to move processes 
  between queues, etc. These algorithms are thus really sets of algorithms 
  (e.g., the set of RR algorithms for all time slices, etc.). One set of 
  algorithms may include another (in lecture, we talked about using Priority 
  Scheduling to implement SJF). What, if any, relation holds between the 
  following pair of algorithms? 
  <P>&nbsp; &nbsp; a. Priority and SJF. <BR>&nbsp; &nbsp; b. Multilevel feedback 
  queues and FCFS. <BR>&nbsp; &nbsp; c. Priority and FCFS. <BR>&nbsp; &nbsp; d. 
  RR and SJF. 
  <P>6.10&nbsp; Explain the differences in the degree to which the following 
  scheduling algorithms discriminate in favor of short processes: 
  <P>&nbsp; &nbsp; a. FCFS <BR>&nbsp; &nbsp; b. RR <BR>&nbsp; &nbsp; c. 
  Multilevel feedback queues 
  <P></P>
  <LI>Chapter 7: 7.8, 7.9, 7.13 
  <P>7.8&nbsp; <B>The Sleeping-Barber Problem.</B> A barbershop consists of a 
  waiting room with <I>n</I> chairs and the barber room containing the barber 
  chair. If there are no customers to be served, the barber goes to sleep. If a 
  customer enters the barbershop and all chairs are occupied, then the customer 
  leaves the shop. If the barber is busy but chairs are available, then the 
  customer sits in one of the free chairs. If the barber is asleep, the customer 
  wakes up the barber. Write a program to coordinate the barber and the 
  customers. 
  <P>7.9&nbsp; <B>The Cigarette-Smokers Problem.</B> Consider a system with 
  three <I>smoker</I> processes and one <I>agent</I> process. Each smoker 
  continuously rolls a cigarette and then smokes it. But to roll and smoke a 
  cigarette, the smoker needs three ingredients: tobaccor, paper, and matches. 
  One of the smoker processes has paper, another has tobacco, and the third has 
  matches. The agent has an infinite supply of all three materials. The agent 
  places two of the ingredients on the table. The smoker who has the remaining 
  ingredient then makes and smokes a cigarette, signaling the agent on 
  completion. The agent then puts out another two of the three ingredients, and 
  the cycle repeats. Write a program to synchronize the agent and the smokers. 
  <P>7.13&nbsp; Suppose that the <TT>signal</TT> statement can appear only as 
  the last statement in a monitor procedure. Suggest how the implementation 
  described in Section 7.7 can be simplified. 
  <P></P>
  <LI>Chapter 8: 8.4 
  <P>8.4&nbsp; Consider the traffic deadlock depicted in Figure 8.8 (see book). 
  <P>&nbsp; &nbsp; a. Show that the four necessary conditions for deadlock 
  indeed hold in this example. <BR>&nbsp; &nbsp; b. State a simple rule that 
  will avoid deadlocks in this system. 
  <P></P>
  <LI>The Intel x86 instruction set architecture provides an atomic instruction 
  called XCHG for implementing synchronization primitives. Semantically, XCHG 
  works as follows (although keep in mind it is executed atomically): 
  <BLOCKQUOTE><PRE>void XCHG(bool *X, bool *Y) {
  bool tmp = *X;
  *X = *Y;
  *Y = tmp;
}
</PRE></BLOCKQUOTE>
  <P>Show how XCHG can be used instead of test-and-set to implement the 
  acquire() and release() functions of the lock data structure described in the 
  "Synchronization" lecture. 
  <BLOCKQUOTE><PRE>struct lock {
  ...
}

void acquire (struct lock *) {
  ...
}

void release (struct lock *) {
  ...
}
</PRE></BLOCKQUOTE>
  <LI>[Chase] This problem asks you to implement an <I>Event</I> synchronization 
  primitive similar to the fundamental coordination primitives used throughout 
  Windows NT. Initially, an <I>Event</I> object is in an <I>unsignaled</I> 
  state. <I>Event::Wait()</I> blocks the calling thread if the event object is 
  in the unsignaled state. <I>Event::Signal()</I> transitions the event to the 
  <I>signaled</I> state, waking up all threads waiting on the event. If 
  <I>Wait</I> is called on an event in the signaled state, it returns without 
  blocking the caller. Once an event is signaled, it remains in the signaled 
  state until it is destroyed. 
  <P>a. First implement <I>Event</I> using a monitor. 
  <BLOCKQUOTE><PRE>monitor Event {
  <I>...</I>
}
</PRE></BLOCKQUOTE>
  <P>b. Implement <I>Event</I> using an explicit mutex and conditon variable. 
  The mutex and condition variable have the semantics described at the end of 
  the "Semaphore and Monitor" lecture in the ping_pong example, and as 
  implemented by you in Project 1. 
  <BLOCKQUOTE><PRE>class Event {
  <I>...private variables...</I>
  void Signal () {
    ...
  }
  ...
}
</PRE></BLOCKQUOTE></LI></OL><PRE>
</PRE>
<HR>

<ADDRESS><A href="mailto:voelker@cs.ucsd.edu">voelker@cs.ucsd.edu</A> 
</ADDRESS></BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区三区爽爽爽爽爽| 日本不卡1234视频| 天天综合色天天| 成人高清视频在线| 精品国产一区二区国模嫣然| 亚洲裸体xxx| 风间由美一区二区三区在线观看 | 亚洲一区二区三区四区在线免费观看| 麻豆国产精品官网| 欧美日韩国产综合草草| 国产女人18毛片水真多成人如厕| 日本不卡不码高清免费观看| 91黄色免费看| 亚洲视频网在线直播| 欧美日韩一区视频| 一色屋精品亚洲香蕉网站| 国产一区二区三区久久久 | 亚洲1区2区3区4区| 91啪在线观看| 中文字幕中文字幕中文字幕亚洲无线| 奇米影视一区二区三区| 欧美日韩国产精选| 亚洲午夜av在线| 在线观看国产日韩| 亚洲精品国产a久久久久久| aaa亚洲精品| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 国产精品一二三四五| 久久精品综合网| 成人免费高清视频| 国产精品久久福利| av电影天堂一区二区在线| 国产精品美女久久久久久久| 国产aⅴ综合色| 中文av一区特黄| 不卡一卡二卡三乱码免费网站| 日本在线不卡视频| 欧美精品高清视频| 免播放器亚洲一区| 久久嫩草精品久久久精品| 国产成都精品91一区二区三 | 欧美精品自拍偷拍动漫精品| 丝袜亚洲另类欧美综合| 91麻豆精品国产自产在线| 免费av成人在线| 久久久久久综合| 91视频xxxx| 亚洲成av人片www| 成人午夜激情影院| 夜夜操天天操亚洲| 91精品国产免费久久综合| 麻豆精品久久久| 中文字幕精品在线不卡| 色婷婷综合五月| 日本一区中文字幕| 中文字幕第一区| 91福利社在线观看| 在线视频一区二区三| 亚洲777理论| 久久嫩草精品久久久精品| 91亚洲精品乱码久久久久久蜜桃| 一区二区不卡在线播放| 日韩欧美一二三四区| 国产·精品毛片| 亚洲高清久久久| 久久男人中文字幕资源站| 9人人澡人人爽人人精品| 五月天亚洲精品| 国产亚洲欧美日韩俺去了| 91福利国产成人精品照片| 麻豆精品视频在线观看免费 | 精品成人一区二区三区| 一本一道波多野结衣一区二区| 亚洲一区二区三区四区在线观看| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | www.成人在线| 久久国产乱子精品免费女| 亚洲人成小说网站色在线 | 日本色综合中文字幕| 日本一区二区综合亚洲| 欧美高清精品3d| 99re视频这里只有精品| 久久精品国产亚洲aⅴ| 亚洲精品第一国产综合野| 久久综合五月天婷婷伊人| 欧美色中文字幕| 不卡大黄网站免费看| 极品少妇一区二区三区精品视频 | 欧美唯美清纯偷拍| 国产91精品入口| 麻豆91精品91久久久的内涵| 亚洲精品v日韩精品| 国产日韩欧美精品综合| 日韩美女主播在线视频一区二区三区 | 成人毛片老司机大片| 免费成人性网站| 丝袜亚洲精品中文字幕一区| 亚洲精品中文字幕乱码三区| 日本一区二区三区免费乱视频 | 日韩高清不卡一区二区| 一区二区三区在线免费观看| 亚洲国产精品激情在线观看| 久久―日本道色综合久久| 538prom精品视频线放| 欧美日韩一区三区四区| 欧美羞羞免费网站| 91久久精品网| 在线免费不卡电影| 日本久久精品电影| 在线观看日韩精品| 欧美在线小视频| 欧美午夜电影网| 欧美日本精品一区二区三区| 欧美三片在线视频观看 | 成人高清伦理免费影院在线观看| 国产精品综合二区| 国产成人综合在线| 国产成人福利片| 成人中文字幕电影| 91原创在线视频| 在线观看91视频| 欧美美女黄视频| 欧美一级在线视频| xnxx国产精品| 中文字幕一区二区三区不卡在线| 国产精品久久久久久久久免费相片| 国产偷v国产偷v亚洲高清| 日本不卡中文字幕| 精品综合免费视频观看| 国产成人精品一区二区三区网站观看 | 亚洲国产综合视频在线观看| 性感美女久久精品| 久久99国产精品免费| 国产精品一级黄| 色8久久精品久久久久久蜜| 欧美日韩一区二区三区视频| 日韩一区二区三区电影在线观看 | 国产校园另类小说区| 国产精品国产自产拍高清av| 一区二区视频在线看| 日韩福利视频导航| 国产成都精品91一区二区三| 91理论电影在线观看| 欧美日韩国产a| 久久精品这里都是精品| 国产99精品国产| 波多野结衣中文字幕一区二区三区| 色综合网站在线| 精品乱码亚洲一区二区不卡| 国产精品国产三级国产aⅴ中文 | 国产精品国产自产拍高清av王其| 亚洲人成网站精品片在线观看| 午夜精品一区二区三区电影天堂| 精久久久久久久久久久| 色综合久久久网| 日韩欧美国产三级电影视频| 国产精品麻豆99久久久久久| 偷窥国产亚洲免费视频| 国产黄人亚洲片| 欧美日韩一区二区三区不卡| 国产性天天综合网| 午夜精品免费在线观看| 成人精品小蝌蚪| 欧美不卡一区二区三区| 一区二区三区日韩| 国产美女娇喘av呻吟久久| 欧日韩精品视频| 亚洲国产精品ⅴa在线观看| 日本不卡不码高清免费观看| 91麻豆免费看| 久久精品人人做人人爽人人| 婷婷丁香久久五月婷婷| av电影天堂一区二区在线观看| 欧美变态tickle挠乳网站| 亚洲aⅴ怡春院| 91丨porny丨蝌蚪视频| 国产丝袜欧美中文另类| 麻豆精品国产传媒mv男同| 在线观看免费亚洲| 激情综合网天天干| 欧美日韩小视频| 亚洲精品免费一二三区| 成人综合在线视频| xnxx国产精品| 久久国产日韩欧美精品| 欧美一区二区美女| 亚洲1区2区3区视频| 欧美午夜不卡在线观看免费| 亚洲欧美另类图片小说| 成人h精品动漫一区二区三区| 久久综合九色综合欧美98| 久久成人免费电影| 日韩免费性生活视频播放| 美日韩一区二区三区| 在线播放国产精品二区一二区四区 | 欧美肥胖老妇做爰| 天天综合天天综合色| 欧美肥妇bbw| 麻豆精品久久精品色综合| 精品国产一区二区三区av性色|