文档库 最新最全的文档下载
当前位置:文档库 › 北邮作业-信令系统--答案

北邮作业-信令系统--答案

北邮作业-信令系统--答案
北邮作业-信令系统--答案

一、单项选择题(共10道小题,共100.0分)

1.V5接口是( )之间的接口。

A.本地交换机和接入网

B.数字终端与交换机

C.电话机与交换机

D.不同交换机

知识点: 信令的基本概念和分类

学生答

案:

[A;] 标准答案: A;

得分: [10] 试题分值: 10.0

提示:

2.(错误)

信令单元为链路状态信令单元, 此时信令单元中的长度表示语( )

A.0

B.1-2

C.3-63

D.63以上

知识点: .7信令系统的结构

学生答案: [A;]

标准答

案:

B;

得分: [0] 试题分

值:

10.0

提示:

3.(错误)

和应配置于()

A.独立型

B.独立型

C.网管中心

D.市话终端局

知识点: N0.7信令网

学生答案: [A;]

标准答

案:

D;

得分: [0] 试题分

值:

10.0

提示:

4.(错误)

消息信令单元中的字段,由( )处理

A.信令数据链路级

B.信令链路级

C.用户级(第四级)

D.信令网功能级

知识点: .7信令系统的结构

学生答案: [A;]

标准答

案:

D;

得分: [0] 试题分

值:

10.0

提示:

5.为了完成信令单元的差错校正, 基本差错校正方法使用了

( )字段

A. 、、、

B. 、

C. 、、

D. 、、

A.、、、

B.、

C.、、

D.、、

知识点: 信令链路功能级

学生答案: [A;]

标准答

案:

A;

得分: [10] 试题分

值:

10.0

提示:

6.(错误)

预防循环重发纠错方法用于( ),预防循环重发纠错方法使用了( )字段。

A.传输时延较大的卫星信令链路, 、、、

B.传输时延较大的卫星信令链路、

C.传输时延小于15的陆上信令链路, 、、、

D.传输时延小于15的陆上信令链路, 和

知识点: 信令链路功能级

学生答案: [A;]

标准答

案:

B;

得分: [0] 试题分

值:

10.0

提示:

7.将不可用信令链路上的信令业务转移到一条或多条替换链路上,而且尽量

保证消息不发生丢失、重复和错序是( )程序的功能

A.倒换

B.倒回

C.强制重选路由

D.受控重选路由

知识点: 信令网功能级

学生答案: [A;]

标准答

案:

A;

得分: [10] 试题分

值:

10.0

提示:

8.(错误)

在信令与信令的配合中,不成功市话接续时的信令配合流程如教材图

4.3.2所示,呼叫失败(释放)和呼叫故障时中的消息组中的消息与中释放

消息中的原因参数的原因值或消息的转换如教材表4.3.1所示,当中释放消息中的原因参数的原因值为27时,汇接局应将其转换为

()消息。

A.

B.

C.

D.

知识点: 与的信令配合

学生答案: [A;]

标准答

案:

C;

得分: [0] 试题分

值:

10.0

提示:

9.消息传递部分根据( )将消息传送到指定的目的地信令点

A.目的地信令点编码

B.全局码

C.子系统号码

D.业务表示语

知识点: 概述

学生答案: [A;]

标准答

案:

A;

得分: [10] 试题分

值:

10.0

提示:

10.当用户使用无连接服务传送的数据大于一个消息信令单元所能传送的数

据量时,可以决定用户数据分段,把原来的用户数据块分成较小的数据块,用多个()消息传送。

A.

B.

C.

D.

知识点: 的程序

学生答案: [A;]

标准答

案:

A;

得分: [10] 试题分

值:

10.0

提示:

一、单项选择题(共10道小题,共100.0分)

1.V5接口是( )之间的接口。

A.本地交换机和接入网

B.数字终端与交换机

C.电话机与交换机

D.不同交换机

知识点: 信令的基本概念和分类

学生答

案:

[A;] 标准答案: A;

得分: [10] 试题分值: 10.0

提示:

2.和应配置于()

A.独立型

B.独立型

C.网管中心

D.长途局

知识点: N0.7信令网

学生答案: [D;]

标准答

案:

D;

得分: [10] 试题分

值:

10.0

提示:

3.(错误)

消息的内容是在( )

A.消息中传送

B.消息中传送

C.的中传送

D.在中传送

知识点: .7信令系统的结构

学生答案: [A;]

标准答

案:

C;

得分: [0] 试题分

值:

10.0

提示:

4.(错误)

链路状态信令单元由( )处理

A.信令数据链路级

B.信令链路级

C.用户级(第四级)

D.信令网功能级

知识点: .7信令系统的结构

学生答案: [A;]

标准答

案:

B;

得分: [0] 试题分

值:

10.0

提示:

5.消息传递部分利用( )来识别消息的业务类别及信

令网类别

A.业务信息八位位组

B.信令信息字段

C.路由标记

D.链路选择码

知识点: 信令网功能级

学生答案: [A;]

标准答

案:

A;

得分: [10] 试题分

值:

10.0

提示:

6.(错误)

为了完成信令单元的差错校正, 基本差错校正方法使用了( )字段

A. 、、、

B. 、

C. 、、

D. 、、

A.、、、

B.、

C.、、

D.、、

知识点: 信令链路功能级

学生答案: []

标准答

案:

A;

得分: [0] 试题分

值:

10.0

提示:

7.(错误)

( )能保证在倒换过程中消息不丢失、不重复、不失去顺序。

北邮交换一阶段作业

一、单项选择题(共10道小题,共100.0分) 1 在ISUP消息中,()消息是交换局是在任一方向发送的消息,表明由于某种原因要求释放电路。 1初始地址消息(IAM) 1释放消息(REL) 1释放完成消息(RLC) 1地址全消息(ACM) 知识 点: 第一次阶段作业 学生答案: [B;] 标准答 案: B; 得分: [10] 试题分 值: 10.0 提示: 2 ISUP消息由路由标记、电路识别码、消息类型编码、必备固定长度参数部分,必备可变长度参数部分和任选参数部分组成。其中,( )用来供MTP的第三级选择信令路由和信令链路。 1路由标记 1电路识别码 1消息类型编码 1必备固定长度参数部分 知识 点: 第一次阶段作业 学生答案: [A;] 标准答 案: A; 得分: [10] 试题分 值: 10.0 提示: 3 TST数字交换网络,初级T入线复用度512,A-B方向选取的内部时隙为TS325,B-A方向内部时隙按相差半帧原则选择,应选择的时隙为()。 1TS512 1TS325 1TS69 1TS63 知识 点: 第一次阶段作业 学生答案: [C;] 标准答 案: C; 得分: [10] 试题分 值: 10.0 提示:

4 时分接线器的输入控制方式是指()。 1时分接线器的SM按控制写入,顺序读出方式工作 1时分接线器的CM按控制写入,顺序读出方式工作 1时分接线器的SM按顺序写人,控制读出方式工作 1时分接线器的CM按顺序写入,控制读出方式工作知识 点: 第一次阶段作业 学生答案: [A;] 标准答 案: A; 得分: [10] 试题分 值: 10.0 提示: 5 (错误) T接线器采用输出控制方式,输入、输出复用线的复用度为512,如果要将T接线器的输入复用线时隙223的内容A交换到输出复用线的时隙78,则话音存储器的()号单元的内容为A。 1223 178 155 1512 知识 点: 第一次阶段作业 学生答案: [B;] 标准答 案: A; 得分: [0] 试题分 值: 10.0 提示: 6 ISUP消息的内容是在( )。 1SCCP消息中传送 1MSU的SIF中传送 1TCAP消息中传送 1在LSSU中传送 知识 点: 第一次阶段作业 学生答案: [B;] 标准答 案: B; 得分: [10] 试题分 值: 10.0 提示: 7 国际7号信令网,信令点的编码计划是()位二进制数。 112

北邮大学英语3阶段作业一

一、阅读理解(共1道小题,共50.0分) 1. Americans with small families own a small car or a large one. If both parents are working, they usually have two cars. When the family is large, one of the cars is sold and they will buy a van(住房汽车) A small car can hold four persons and a large car can hold six persons but it is very crowded. A van hold seven persons easily, so a family with three children could ask their grandparents to go on a holiday travel. They could all travel together. Mr. Hagen and his wife had a third child last year. This made them sell a second car and buy a van. The sixth and seventh seat are used to put other things, for a family of five must carry many suitcases when they travel. Americans call vans motor homes. A motor home is always used for holidays. When a family are traveling to the mountains or to the seaside, they can live in their motor home for a few days or weeks. All the members of a big family can enjoy a happier life when they are traveling together. That is why motor homes have become very popular. In America there are many parks for motor homes. 1. From the passage, a motor home is also called ______. A. a motor car B. a motorbike C. a big truck D. a van 2. A family owns a motor home usually with ______. A. more than two children B. interest in vans C. a baby D. much money 3. Americans with a small family and with two parents working usually have ______. A. a car B. two cars C. two vans D. a van 4. What is the main use of motor homes for Americans? A. to do some shopping with all the family members B. to drive their children to school every day C. to travel with all the family members for holidays

北邮2016大学英语二 阶段作业三

一、阅读理解(共1道小题,共25.0分) 1. William Henry Harrison, the ninth President of the United States, was born in a small town. As a boy, he was quiet and shy. In fact, he was so quiet that everyone thought he was stupid. Because of that, the people of the town liked to play jokes on him. “Here, William,” one of them would say. “Here is a nickel(五美分硬币), and here is a dime(十美分硬币). Which one do you want?” He always chose the nickel, and then they all laughed at him. Finally, his mother took him aside and said to him, “I know that you are a smart boy, but sometimes you let people think you are not so smart. Why do you always choose the nickels instead of the dime? Don't you know that a dime is worth much more than a nickel?” “Certainly, I know it,” William answered slowly. “But if I choose the dime, they won't play the trick on me any more. Then I won’t get any more nickels.” 1.William Henry Harrison was born_____. A.in a big city B.on a farm C.in the countryside D.in a small town 2.People thought he was stupid because ______. A.he did poorly at school B.he was so quiet C.he always asked foolish questions D.he was afraid of others 3.Whenever people played tricks on him, he was asked to_____. https://www.wendangku.net/doc/5e15686441.html,ugh at himself

北邮大学英语3(新)阶段作业一及答案

北邮大学英语3(新)阶段作业一及答案 一、单项选择题(共10道小题,共100.0分) 1.The doctors________the medicines to the people in the flood area. A.distinguished B.chose C.annoyed D.distributed 2.We took out another________to expand our business. A.lend B.lent C.loan D.load 3.He couldn't________his father that John was telling the truth. A.convince

B.believe C.admit D.display 4.Facing the________situation the sales manager looked________. A.puzzling,puzzled B.puzzling,puzzling C.puzzled,puzzled D.puzzled,puzzling 5.Professor Zhang had two articles published in the_________periodical. A.studying B.learning C.learned D.studied

6.The University________him an honorary degree. A.drained B.awarded C.approached D.glimpsed 7.If you're late again you'll be________from your job. A.referred B.deserted C.omitted D.dismissed 8.They are________as the most promising table-tennis players. A.regarded

北京邮电大学2009年操作系统期末试卷

北京邮电大学2008——2009学年第一学期 《操作系统》期末考试试题(A) 1.FILL IN BLANKS (10 points) 1.1 A _trap___ is a software-generated interrupt caused either by an error or by a specific request from a user program that an operating-system services be performed. 1.2 A ______ is used in Unix systems to notify a process that a particular event has occurred. 1.3 To manage the process executing, OS records the state and other information (e.g. the priority) of the process in . 1.4 The scheduling criteria include CPU utilization, throughput, turnaround time, waiting time, and response time .

1.5 For n concurrent processes that mutual exclusively use some resources, the code segmentations, in which the processes access the resources, are called deadlock . 1.6. The ___visual memory___ scheme enables users to run programs that are larger than actual physical memory, this allows the execution of a process that is not completely in memory. 1.7. The __FIFO___ page replacement algorithm associates with each page the time when that page was brought into memory. When a page must be replaced, the oldest page is chosen. 1.8The file system resides permanently on , which is designed to hold a large amount of data permanently. 1.9The file system itself is generally composed of many different levels, including the logical file system, the file-organization module, the and the I/O control. 1.10 T he kernel’s I/O subsystem provides numero us services. Among these are I/O scheduling, , caching, spooling, device reservation, and error handling, and name translation. 2.CHOICE ( 10 points ) 2.1 _____ operating systems have well defined, fixed time constraints. Processing must be done within the defined constrains, or the system will fail. A. Multimedia B. Real-time C. Clustered D. Network 2.2 Which one of the following OS is implemented based on microkernel structure? _____

北邮第三次阶段作业大学英语2

1. People have been talking about health for a long time because people know the importance of it. People's understanding of health also becomes deeper with the progress in scientific research. Recently the term "health" has come to have a wider meaning than it used to. It no longer means just the absence of illness. Today, health means the well-being of your body, your mind and your relationship with other people. This new concept of health is closely related to another term----quality of life. Quality of life is the degree of overall satisfaction that a person gets from life. Why has the emphasis of health shifted from the absence of disease to a broader focus on the quality of a person's life?One reason for this has to do with the length and conditions of life that people can now expect. Medical advances have made it possible for people today to live longer, healthier lives. Imagine for a moment that you were born in the year 1900. You could have expected on average to live until about the age of 47. In contrast, if you were born in the year 1999, you could expect to live to the age of 75. 2. 1. ______leads to people's deeper understanding of health. 2. https://www.wendangku.net/doc/5e15686441.html,mon knowledge 2.Progress in scientific research 3.Better conditions of living 4.Quality of life 3. According to the passage, to people of today, health means______. 4. 1.absence of illness 2. a long life 3.good conditions of living 4.overall satisfaction with life

2015北邮大学英语2阶段作业1

一、完形填空(共1道小题,共50.0分) 1. Alfred Adler, a famous doctor, had experience_3__ illustrates this. When he was a small boy he was poor at arithmetic. His teacher got the idea that he had no ability in arithmetic, and told his parents what she thought in order that they would not expect_4__ much of him. __5_ this way, they too developed the idea, “Isn?t it too bad that Alfred can?t do arithmetic?” He accepted their mistaken estimate of his ability, felt that it was __6_ to try, and was very poor at arithmetic, just as they expected. One day Adler succeeded in solving a problem which _7__of the other students had been able to solve. This gave him confidence. He _8___ the idea that he couldn?t do arithmetic and was determined to show them that he could. His new __9__ confidence stimulated him to go at arithmetic problems with a new spirit. He now worked with interest, __10_, and purpose, and he soon became extraordinarily good at arithmetic. a. A. well B. necessary C. in D. good b. A. possible B. possibly C. likely D. like c. A. to B. when C. what D. which d. A. too B. very C. so

北邮作业任务信令系统答案解析

* * 一、单项选择题(共10道小题,共100.0分) 1.V5接口是( )之间的接口。 A.本地交换机和接入网 B.数字终端与交换机 C.电话机与交换机 D.不同交换机 知识点: 信令的基本概念和分类 学生答 [A;] 标准答案: A; 案: 得分: [10] 试题分值: 10.0 提示: 2.(错误) 信令单元为链路状态信令单元, 此时信令单元中的长度表示语LI=( )

* * A.0 B.1-2 C.3-63 D.63以上 知识点: No.7信令系统的结构 学生答案: [A;] 标准答 案: B; 得分: [0] 试题分 值: 10.0 提示: 3.(错误) TUP和ISUP应配置于() A.独立型HSTP B.独立型 C.网管中心

* * D.市话终端局 知识点: N0.7信令网 学生答案: [A;] 标准答 案: D; 得分: [0] 试题分 值: 10.0 提示: 4.(错误) 消息信令单元MSU中的SIO字段,由( )处理 A.信令数据链路级 B.信令链路级 C.用户级(第四级) D.信令网功能级 知识点: No.7信令系统的结构 学生答案: [A;] 标准答 案: D;

得分: [0] 试题分 值: 10.0 提示: 5.为了完成信令单元的差错校正, 基本差错校正方法使用了( )字 段 A. FIB、FSN、BIB、BSN B. FSN、BSN C. FSN、BIB、BSN D. FIB、FSN、BSN A.FIB、FSN、BIB、BSN B.FSN、BSN C.FSN、BIB、BSN D.FIB、FSN、BSN 知识点: 信令链路功能级 学生答案: [A;] 标准答 案: A; 得分: [10] 试题分10.0

北邮高级操作系统期末试卷

2017,2015,2013北邮高级操作系统 试题 学号: 姓名: 成绩: 、分布式操作系统中的透明性主要是什么?其中那些透明性容易实现?哪些难实现????分? 难点: 、创建一个分布式数据库系统可提供有效的存取手段来操纵这些结点上的子数据库。 、不确定性,控制比较复杂,尤其是在资源管理上要附加许多协调操作—资源属于局部工作站,性能、可靠性对网络的依赖性强,安全保密——基础不好。用户掌握有许软件接口,相应的应用软件较少,需要大力开发。 、分布式互斥中集中式算法、分布式算法、令牌算法。分析一下其中那个算法比较实用,为什么????分? 集中式算法:集中式算法借鉴了集中式互斥算法的思想,在分布式系统

中,选出一个进程为协调者 ?通过科学的分析制定一套规则? 。协调者对所有的请求进行排队并根据一定的规则授予许可。协调者接受请求以后,检查临界区内的资源是否被其他进程占用。如果是,则它将当前请求进程插入到对应临界资源的请求队列中 否则,回复一个同意消息给请求进程,通知它可以访问该临界资源。该算法通俗易懂,既能够杜绝死锁、饥饿等现象发生,又能保证资源的互斥访问顺利进行。 但是它也有缺点,由于是集中式管理,所以一旦管理进程出现故障,则整个系统将处于瘫痪状态。因此,管理进程的性能完全决定了算法的效率,应用范围小,难以普及。 分布式算法:分布式算法中运用到广播请求通信,当进程想请求共享资源时,需要首先建立三个变量 准备进入临界区,实时时间和处理器号,并利用广播通信发送给正在运行的所有进程。该算法的核心思想如下 当进程想进入临界区时 要建立一个包括进入的临界区名字、处理器号和当前时间的消息 并把消息发送给所有其它进程。当进程接收到另一个进程的请求消息时 将分下面三种情况来区别对待 ?若接收者不在临界区中 也不想进入临界区 就向发送者发送 ?消息; ?若接收者已经在临界区内就不必回答 而是负责对请求消息排队; ?若接收者要进入临界区 但还没进入 它就会把接收的消息和它发送的消息的时间戳进行对比 取小的那个。如果接收的消息时间戳小 就发 ?消息 如果发送的消息时间戳小 那么接收者负责排列请求队列而不发送任何消息。当进程接收到允许消息时 它就进入临界区。从临界区退出时 向队列中的所有进程发送 ?消息 并将自己从队列中删除。该算法可以保证访问临界区的互斥性以及无死锁进程、无饥饿进程。但是这种算法有个严重的缺点是算法太复杂并且不健壮 任何一个进程崩溃都会影响到算法的正确性。二是令牌丢失 令牌算法:令牌算法中引入了令牌,所有的进程组成一个环模型,环中每个进程需要知道它的下一个位置的节点的名称。令牌在环上顺序传递,当

北邮网络教育-大学英语3-阶段作业2

北邮网络教育-大学英语3-阶段作业2

一、完形填空(共1道小题,共50.0分) 1 Monday is the beginning of the week; it is the day most Americans like worst. The day they ___1___ most is Saturday. Saturday is the ___2___ of the workweek; it is the beginning of the weekend. Life is ___3___ on the weekend; most Americans ___4___ care of their houses, cars and gardens. They sleep ___5___ in the morning. They enjoy the feeling that the time ___6___ to move more slowly. The workweek is for things you ___7___ to do; the weekend is for things you ___8___ to do. Some people may get in a car for a ___9___ in the country. They like to take part in a sports activity out of doors. And on Saturday night they might go to a public eating ___10___ or a film. 1like 1dislike 1spend 1leave 学生答案: A; 标准答 案: A 1middle 1beginning 1end 1day 学生答案: C; 标准答 案: C 1worse 1difficult 1bad 1different 学生答案: D; 标准答 案: D 1make 1take 1look 1pick

北邮大学英语2阶段作业2

A . anyone else B . anything C . some of the things D . anything else A . more larger, all B . much larger, that C . very larger, both D . larger, those

A . flooded B . were flooded C . was flooded D . flood √4. A . being B . C . having D . having A . happened to see B . was happened to see C . happened to be seen D . was happened to be seen

A . rather B . enough C . quite a D . fairly A . the much best B . much the most best C . the very best D . very the best A . will put off

B . will be put off C . will be put D . has put off A . When B . What time C . How often D . How long A . take good care of B . has taken good care of C . took good care of D . are taken good care of

2013北邮通信网络规划设计作业阶段一二

作业阶段一 一、判断题(共5道小题,共50.0分) 1.信号传输的透明性是指在通信网中传输时不对信号做任何处理。 A.正确 B.错误 知识点: 第1章概述 学生答案: [B;] 标准答 案: B 得分: [10] 试题分 值: 10.0 提示: 2.总线形网络结构需要的传输链路少,增减节点比较方便,但稳定性较差, 网络范围也受到限制。 A.正确 B.错误 知识点: 第1章概述 学生答案: [A;] 标准答 案: A 得分: [10] 试题分 值: 10.0 提示: 3.当本地网中交换局数目不太多时可采用网形网结构。 A.正确 B.错误 知识点: 第2章电话通信网 学生答案: [A;] 标准答 案: A 得分: [10] 试题分 值: 10.0 提示: 4.对于规模不大的城域网,可视具体情况将接入层与汇聚层合并。

A.正确 B.错误 知识点: 第4章基于IP的通信网 学生答 案: [A;] 标准答案: A 得分: [10] 试题分值: 10.0 提示: 5.100BASE-T快速以太网的MAC帧结构与10BASE-T的MAC帧结构不同。 A.正确 B.错误 知识点: 第4章基于IP的通信网 学生答 案: [B;] 标准答案: B 得分: [10] 试题分值: 10.0 提示: 6. 二、单项选择题(共5道小题,共50.0分) 1.话务量不允许溢出的路由为() A.低呼损直达路由 B.高效直达路由 C.基干路由 D.A和C 知识点: 第2章电话通信网 学生答案: [D;] 标准答 案: D 得分: [10] 试题分 值: 10.0 提示: 2.下列指标中,不是衡量电话通信网稳定质量的是() A.接续损失 B.失效率

北邮高级操作系统期末试卷

20仃,2015,2013北邮高级操作系统 试题 学号:姓名:成绩: 1、分布式操作系统中的透明性主要是什么?其中那些透明性容 易实现?哪些难实现?(20分) 难点: 1、创建一个分布式数据库系统可提供有效的存取手段来操纵这些结点上的子数据库。 2、不确定性,控制比较复杂,尤其是在资源管理上要附加许多协调操作一资源 属于局部工作站,性能、可靠性对网络的依赖性强,安全保密一一基础不好。用户掌握有许软件接口,相应的应用软件较少,需要大力开发。 2、分布式互斥中集中式算法、分布式算法、令牌算法。分析一下其 中那个算法比较实用,为什么?(20分) 集中式算法:集中式算法借鉴了集中式互斥算法的思想,在分布式系统中,选出一个进程为协调者(通过科学的分析制定一套规则)。协调者对所有的请求进行排队并根据一定的规则授予许可。协调者接受请求以后,检查临界区内的资源是否被其他进程占用。如果是,则它将当前请求进程插入到对应临界资源的请求队列中;否则,回复一个同意消息给请求进程,通知它可以访问该临界资源。该算法通俗易懂,既能够杜绝死锁、饥饿等现象发生,又能保证资源的互斥访问顺利进行。 但是它也有缺点,由于是集中式管理,所以一旦管理进程出现故障,则整个系统将处于 瘫痪状态。因此,管理进程的性能完全决定了算法的效率,应用范围小,难以普及。

分布式算法:分布式算法中运用到广播请求通信,当进程想请求共享资源时,需要首先建立三个变量:准备进入临界区,实时时间和处理器号,并利用广播通信发送给正在运行的所有进程。该算法的核心思想如下:当进程想进入临界区时,要建立一个包括进入的临界区名字、处理器号和当前时间的消息,并把消息发送给所有其它进程。当进程接收到另一个进程的请求消息时,将分下面三种情况来区别对待:1)若接收者不在临界区中,也不想进入临界区,就向发送者发送0K消息;2)若接收者已经在临界区内就不必回答,而是负责对请求消息排队;3)若接收者要进入临界区,但还没进入,它就会把接收的消息和它发送的消息的时间戳进行对比,取小的那个。如果接收的消息时间戳小,就发0K消息,如果发送的消息时间戳小,那么接收者负责排列请求队列而不发送任何消息。当进程接收到允许消息时,它就进入临界区。从临界区退出时,向队列中的所有进程发送0K消息,并将自己从队列中删除。该算法可以保证访问临界区 的互斥性以及无死锁进程、无饥饿进程。但是这种算法有个严重的缺点是算法太 二是令牌丢失 复杂并且不健壮,任何一个进程崩溃都会影响到算法的正确性。 令牌算法:令牌算法中引入了令牌,所有的进程组成一个环模型,环中每个进程需要知道它的下一个位置的节点的名称。令牌在环上顺序传递,当某个进程拥有令牌时就表明可以访问临界区。当请求进程没有令牌时,算法需要N发送任何消息。如果得到令牌的进程不打算进入临界区,它只是简单地将令牌传送给它后面的进程。当每个进程都需要进入临界区时,令牌在环上的传递速度最慢;相反,当没有进程想要进入临界区时,令牌在环上的传递速度最快。 (该算法的正确性是显而易见的,但是也存在一些问题,比如说,当令牌丢失时,需要重新生成。可是如何检测令牌丢失又是一个困难的问题。还有,如果环中的一个进程崩溃,那么环 的连贯性就遭到破坏,算法也就会出现麻烦。) 综上所述,基于令牌的算法在排除了令牌丢失和进程故障等问题之后,在今后的分布式系统中,能有更好的应用。

北邮-大三-操作系统-进程管理实验报告

实验一进程管理 1.实验目的: (1)加深对进程概念的理解,明确进程和程序的区别; (2)进一步认识并发执行的实质; (3)分析进程争用资源的现象,学习解决进程互斥的方法; (4)了解Linux系统中进程通信的基本原理。 2.实验预备内容 (1)阅读Linux的sched.h源码文件,加深对进程管理概念的理解; (2)阅读Linux的fork()源码文件,分析进程的创建过程。 3.实验内容 (1)进程的创建: 编写一段程序,使用系统调用fork() 创建两个子进程。当此程序运行时,在系统中有一个父进程和两个子进程活动。让每一个进程在屏幕上显示一个字符:父进程显示字符“a”,子进程分别显示字符“b”和“c”。试观察记录屏幕上的显示结果,并分析原因。 源代码如下: #include #include #include #include #include int main(int argc,char* argv[]) { pid_t pid1,pid2; pid1 = fork(); if(pid1<0){ fprintf(stderr,"childprocess1 failed"); exit(-1); } else if(pid1 == 0){ printf("b\n"); } 1/11

else{ pid2 = fork(); if(pid2<0){ fprintf(stderr,"childprocess1 failed"); exit(-1); } else if(pid2 == 0){ printf("c\n"); } else{ printf("a\n"); sleep(2); exit(0); } } return 0; } 结果如下: 分析原因: pid=fork(); 操作系统创建一个新的进程(子进程),并且在进程表中相应为它建立一个新的表项。新进程和原有进程的可执行程序是同一个程序;上下文和数据,绝大部分就是原进程(父进程)的拷贝,但它们是两个相互独立的进程!因此,这三个进程哪个先执行,哪个后执行,完全取决于操作系统的调度,没有固定的顺序。 (2)进程的控制 修改已经编写的程序,将每个进程输出一个字符改为每个进程输出一句话,再观察程序执行时屏幕上出现的现象,并分析原因。 将父进程的输出改为father process completed 2/11

16秋北邮大学英语3阶段作业

16秋北邮大学英语3 阶段作业 -CAL-FENGHAI.-(YICAI)-Company One1

一、单项选择题(共9道小题,共分) 1.下面关于 Java 的理解错误的是()。 A.Java 是一个面向对象、平台独立、多线程、动态的编程环境 B.Java 是一个完整的计算平台,包括完整的程序开发环境和运行环境 C.Java 是一个通用的编程环境,使用它可以开发完成各种计算任务的通用程 序 D.Java 是一个 Web 程序开发和运行环境,使用它只能开发 Web 应用程序 知识 点: 阶段作业一 学生答案:[D;] 标准 答案: D 得分:[10]试题分值: 2.(错误) A.规定一组类的对外界面 B.防止命名冲突 C.访问控制 D.方便类的查找和使用 知识 点: 阶段作业一 学生答案:[D;] 标准 答案: A 得分:[0]试题分值: 3. A.与文件的结构相同

B.与文件目录的层次相同 C.与文件类型相同 D.与文件大小相同 知识 点: 阶段作业一 学生答案:[B;] 标准 答案: B 得分:[10]试题分值: 4. A.每个透视图都定义了工作台中各个视图的初始设置和布局 B.一个工作台窗口包含多个独立的透视图,但同一时刻只有一个透视图是对 用户可见的 C.每个透视图都有自己的视图和编辑器,用户可以在各个透视图间切换 D.透视图的布局是可以改变的,但改变多次后无法再恢复到初始设置 知识 点: 阶段作业一 学生答案:[D;] 标准 答案: D 得分:[10]试题分值: 5.(错误) A.它是用户计算机磁盘上划出的一块区域,用来存放用户的工作资料 B.它以项目为单位组织文件和目录 C.它将各种资源组织成树形结构,文件夹位于树的根部,项目位于树枝位置 D.用户对工作空间的每次操作都能在Eclipse集成环境中得到同步 知识 点: 阶段作业一 学生[B;]标准C

北邮网络教育大学英语2阶段作业一二三

北邮网络教育大学英语2阶段作业一、二、三 一、完形填空(共1道小题,共50.0分) 1.The man _9__to run away when he saw the policeman. He just smiled _10__ said to the woman, “I want to give this purse to you, madam. I think you dropped it on the street.” A.h e B.h er C.s he D. A.The worker B.The driver C.The man D. A.also B.either C.too D. A.in B.on C.to D. A.quickly B.easily C.happily D. A.exciting B.excited C.surprised D. A.when B.because C.after

D. A.open B.locked C.out of D. A.refused B.didn’t try C.tried in vain D. A.but B.so C.or D. 二、单项选择题(共10道小题,共50.0分) 1.You should take one side with decision and ________ it with effect. A.act on B.act C.perform D.

2.(错误 A.origin B.source C.place D. 3. A.out B.up to C.down D.

北邮网络-操作系统原理-阶段作业二

一、多项选择题(共10道小题,共100.0分) 1. 关于银行家算法,下面的说法哪些是对的? A. 银行家算法是用来检查系统中是否有死锁发生的算法 B. 银行家算法是系统用来分配资源的算法 C. 银行家算法可以预防死锁的发生 D. 银行家算法并不干预系统分配资源 2. 采用预先静态资源分配法,主要是打破了哪些死锁条件? A. 互斥条件 B. 不可抢占条件 C. 部分分配条件 D. 循环等待条件 3. 一个作业的进程处于阻塞状态,这时该作业处于什么状态? A. 提交状态 B. 后备状态 C. 运行状态 D. 完成状态

4. 在短期繁重负载下,应将哪个进程暂时挂起的问题是由()调度程序负责 A. 长期 B. 中期 C. 短期 D. 都不是 5. 多处理器系统分类中,对称式多处理器系统符合哪些特征? A. 紧密耦合 B. 共享内存 C. 在一台处理器上执行操作系统,其他处理器执行应用进程 D. 各个处理器的地位都完全相同 6. 现在的进程通信通常是采用间接通信方式。在这种方式中,端口代表什么 意义? A. 计算机终端在网络中的位置 B. 计算机中的不同的网卡 C. 服务器 D. 进程

7. 信号量机制可以总结为三个要素,应该是哪些? A. 一个整型变量 B. 原语 C. Wait操作 D. Signal操作 8. 在下列的互斥方法中,不能用于多处理器系统的的方法有: A. 软件互斥方法 B. 中断屏蔽方式 C. 硬件指令方式 D. 信号量机制 9. 一个信号量被定义为一个() A. 字符 B. 整数 C. 任意型变量 D. 整型变量

10. “异步事件能按照要求的时序进行,以达到合作进程间协调一致的工作” 既是所谓()。 A. 互斥 B. 并行性 C. 同步 D. 临界段 11.

相关文档
相关文档 最新文档