代写范文

留学资讯

写作技巧

论文代写专题

服务承诺

资金托管
原创保证
实力保障
24小时客服
使命必达

51Due提供Essay,Paper,Report,Assignment等学科作业的代写与辅导,同时涵盖Personal Statement,转学申请等留学文书代写。

51Due将让你达成学业目标
51Due将让你达成学业目标
51Due将让你达成学业目标
51Due将让你达成学业目标

私人订制你的未来职场 世界名企,高端行业岗位等 在新的起点上实现更高水平的发展

积累工作经验
多元化文化交流
专业实操技能
建立人际资源圈

Computer_Sience

2013-11-13 来源: 类别: 更多范文

| |2010 | | | | | | | | | | |[Ass# 2] | | | Course: CS 330 Student Name: Sara Al Shehri ID# 207410089 Introduction to Operating Systems - CS330 Assignment 2 1. What is the main advantage of the layered approach to system design' The main advantage of the layer approach is simplicity of construction and debugging. The layer are selected so that each uses functions and services of only lower levels layers. This approach simplifies debugging and system verification. 2. What is the purpose of the command interpreter' Why is it usually separate from the kernel' The purpose of the command interpreter is to get and execute the next user specified command. 3. Describe the actions a kernel takes to context switch between processes. When a context switch occurs, the kernel saves the context of the old process in its PCB and load the saved context of the new scheduled to run. Context-switch time is pure overhead, because the system does no useful work while switching. 4. Explain precisely how a new process is created in UNIX' In UNIX, each process is identified by its process identifier, wich is a unique integer. A new process is created by the fork () system call. The new process consists of a copy of the address space of the original process. This mechanism allows the parent process to communicate easily with its chilled process. Both process (parent and chilled) continue execution at the instruction after the fork(), with one difference: the return code for the fork() is zero for the new chilled process, whereas the (none zero)process identifier of the chilled is returned to the parent. 5. How do the Linux fork and clone system calls differ' How are they alike' The similarity between them is that they support multi-tasking which is the really important role of modern operating systems. The modern computing system is required to do many tasks at the same time. Furthermore, there is one more similarity. From the processor’s point of view, a new process by fork and a new thread by clone are the same. The fork creates a new process and the clone creates a new thread as you can see from the figure below, it shows how they created each other. This is one of differences between fork and clone system calls. There is a matter of significance, in terms of the context of memory. In clone system call, the memory image of the parent is allowed to share with the child thread except stack memory area. Therefore, the child thread will require new stack memory area which we can find in the implementation. The fork system call does not work the same way as clone system call. The new process will take its resources from the parent; the resources are exactly same as the parent. It is just a copy of its parent. How could a system be designed to allow a choice of operating systems to boot from' What would the bootstrap program need to do'
上一篇:Contract_Creation_and_Manageme 下一篇:Compare_and_Contrast_of_China_