freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

chapter4processes進(jìn)程-wenkub.com

2024-09-25 21:59 本頁面
   

【正文】 ? RMI allows a Java program on one machine to invoke a method on a remote object. RMI允許在一臺(tái)機(jī)器上一個(gè) Java 程序調(diào)用在遠(yuǎn)程對(duì)象上的一個(gè)方法。 ? The clientside stub locates the server and marshalls the parameters. 客戶端的 stub查找服務(wù)器和 marshalls 參數(shù)。 RecvData(sd,databuf)。 } Client side: int sd。 ListenSocket( sd )。 Operations on message queue: Msgget Msgsend Msgrcv Msgctl 2020年 9月 26日 12時(shí) 27分 Operating System Concepts ClientServer Communication 客戶機(jī) 服務(wù)器通信 ? Sockets套接字 ? Remote Procedure Calls ( RPC) 遠(yuǎn)程過程調(diào)用 ? Remote Method Invocation (Java) 遠(yuǎn)程方法啟用 (Java) 2020年 9月 26日 12時(shí) 27分 Operating System Concepts Sockets套接字 ? Originated from BSD UNIX ? A socket is defined as an endpoint for munication. 一個(gè)套接定義成通信的一個(gè)端點(diǎn) ? Concatenation of IP address and port IP地址的拼接和端口 ? Port:一個(gè) 16位的整數(shù), 1024以下為系統(tǒng)用,如 23為 tel service專用, 21為 ftp server專用, 80為 server專用,應(yīng)用程序應(yīng)使用1024以上的端口 ? The socket :1625 refers to port 1625 on host ? Communication consists between a pair of sockets. 通信有一對(duì) sockets組成 ? Type of socket: ? connectionoriented(TCP,面向連接 ):可靠 ? connectionless(UDP,無連接) :可靠性較差,但方便 ? multicast(多播 ):可以連接至多個(gè)節(jié)點(diǎn)) 2020年 9月 26日 12時(shí) 27分 Operating System Concepts Fig Communication using Socket利用 套接字通信 2020年 9月 26日 12時(shí) 27分 Operating System Concepts A typical C/S munication using sockets Client side: gethostbyname getprotobyname socket connect recv close Server side: getprotobyname socket bind listen accept send close 2020年 9月 26日 12時(shí) 27分 Operating System Concepts Service side: int sd,sd2。 /* 資源創(chuàng)建者所在組的有效標(biāo)識(shí) */ ushort mode。 /* 整型, 0 表示 private ,非 0 表示 public */ ushort uid。 / * 消息文本的地址 */ t i m e _ t m s g _ s t i m e 。 / * 最后一個(gè)接收消息的進(jìn)程的標(biāo)識(shí)號(hào) */}。 / * 隊(duì)列中消息的字節(jié)數(shù) */ u s h o r t m s g _ q n u m 。 / * 最后接收時(shí)間 * / t i m e _ t m s g _ c t i m e 。 s t r u c t m s g * m s g _ f i r s t 。作為中間存儲(chǔ)消息隊(duì)列中, 并且消息從一進(jìn)程被拷貝到其它進(jìn)程。 2020年 9月 26日 12時(shí) 27分 Operating System Concepts An Example: Windows 2020 (Cont.) ? When a LPC channel is created, one of three types of message passing techniques must be specified. 當(dāng)一個(gè) LPC 通道被創(chuàng)建時(shí),確定 3 種類型消息傳送技術(shù)之一。 ? Windows 2020 provides support for multiple operating environments or subsystems, with which application programs munication via a messagepassing mechanism ,that is called the local procedure call (LPC) facility . LPC is similar to the standard RPC mechanism that is widely used, but It is optimized for and specific to Windows 2020. Windows 2020 為多重操作環(huán)境或子系統(tǒng)提供支持 , 與哪個(gè)經(jīng)由消息傳遞機(jī)制的應(yīng)用程序通信 , 那個(gè)被稱為本地過程調(diào)用 ( LPC ) 設(shè)備。不阻塞被認(rèn)為異步 ? send and receive primitives may be either blocking or nonblocking. 發(fā)送和接收原語可能會(huì)引起阻塞或不阻塞 。 P2 and P3 receive. ?Who gets the message? 誰得到消息? 2020年 9月 26日 12時(shí) 27分 Operating System Concepts Indirect Communication (Cont.) 間接通訊 ? Solutions 解決方案 ?Allow a link to be associated with at most two 2個(gè)進(jìn)程相關(guān) ?Allow only one process at a time to execute a receive operation. 某一時(shí)刻只允許有一個(gè)進(jìn)程執(zhí)行接收操作 ?Allow the system to select arbitrarily the receiver. Sender is notified who the receiver was. 允許系統(tǒng)任意選擇接收者。如: kill –9 pid :向 pid 進(jìn)程發(fā)送 9號(hào)信號(hào)(無條件終止) kill –l : 顯示系統(tǒng)中所有的信號(hào) ls –l | wc –l :求出當(dāng)前目錄下的文件數(shù) ? pipe( 管道技術(shù)) :一個(gè)進(jìn)程的輸出作為另外一個(gè)進(jìn)程的輸入,實(shí)現(xiàn)相關(guān)進(jìn)程(如父子進(jìn)程)通信,可看作一個(gè)臨時(shí)文件。 /* do nothing */ nextConsumed = buffer[out]。 /* do nothing */ buffer[in] = nextProduced。 int out = 0。 exit(0)。 exit(1)。 few very long CPU bursts. PU 型進(jìn)程 花費(fèi)更多時(shí)間于計(jì)算,許多長(zhǎng) CPU處理 2020年 9月 26日 12時(shí) 27分 Operating System Concepts Context Switch 進(jìn)程的上下文切換 ? When CPU switches to another process, the system must save the state of the old process and load the saved state for the new process. 當(dāng) CPU切換至另一個(gè)進(jìn)程時(shí),系統(tǒng)必須保存舊進(jìn)程狀態(tài)并為新進(jìn)程調(diào)入所保留的狀態(tài) ? Contextswitch time is overhead。2020年 9月 26日 12時(shí) 27分 Operating System Concepts Chapter 4: Processes 進(jìn)程 ? Process Concept進(jìn)程概念 ? Process Scheduling進(jìn)程調(diào)度 ? Operations on Processes進(jìn)程上的操作 ? Cooperating Processes協(xié)同進(jìn)程 ? Interprocess Communication進(jìn)程間通信 ? Communication in ClientServer Systems 客戶機(jī) 服務(wù)器系統(tǒng)通信 2020年 9月 26日 12時(shí) 27分 Operating System Concepts Process Concept 進(jìn)程概念 ? An operating system executes a variety of programs: 操作系統(tǒng)執(zhí)行各種程序 ?Batch system – jobs批處理系統(tǒng) 作業(yè) ?Timeshared systems – user programs or tasks 分時(shí)系統(tǒng) 用戶程序或任務(wù) ? Textbook uses the terms job and process almost interchangeably. 本書使用的名詞 :作業(yè)和進(jìn)程,基本可互換 2020年 9月 26日 12時(shí) 27分 Operating System Concepts Process Concept (Cont.) ? Process – a program in execution。 the system does no useful work while switching. 上下文切換的時(shí)間開銷較重;在切換時(shí),系統(tǒng)沒有做有用的工作 ? Time dependent on hardware support. 時(shí)間取決于硬件的支持 2020年 9月 26日 12時(shí) 27分 Operating System Concepts Oper
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1