11/13 11/6 OS作業

名稱
11/6 OS作業
日期
11/13
課程名稱
作業系統
指導教師
劉艾華
心得
1.
(1) Message passing is useful for exchanging smaller amounts of data,because no conflicts need be avoided.It is also easier to implement than is shared-memory for intercomputer communication.
(2) Message passing is good at controlling synchronously,but it is more complicated than shared-memory when we write codes.Shared-memory is fast when it has cache;However,it needs to synchronize working manually.

2.
(1) System calls provide the interface between a running program and the operating system.Typically written in high-level language(C or C++).May need to be written in low-level assembly language.
(2) The functions thatmake up API typically invoke the actual system calls on behalf of the application programmer.

3.
(1) (a) Used to modify a copy of source code of the OS and have it re-compiled. (b) Used to create tables and modules from a precompiled library.The needed modules are linked together to form the generated OS. (c) Construct a system that is completely table driven.All the code is always part of the system,and selection occurs at execution time.
(2) The size and generality of the generated system and the ease of modification as the hardware configuration changes.