Directions: For this part, you are allowed 30 minutes to write a short essay entitled Obtain the Information Online. You should write at least 150 words following the outline given below:
1. 随着网络的发展,我们可以轻而易举地从网络上获取各种信息
2.如此便捷地获取信息有利也有弊
3.你的看法
Obtain the Information Online
查看答案
SECTION B ENGLISH TO CHINESE
Directions: Translate the following text into Chinese.
Etiquette to a society is what apparel is to the individual. Without apparel men would go in shameful nudity which would surely lead to the corruption of moral; and etiquette society would be in a pitiable state and the necessary intercourse between its members would be interfered with by needless offences and troubles. If society were a train, the etiquette would be the rails along which only the train could rumble forth; if society were a state coach, the etiquette would be the wheels and axis on which only the coach could roll forward. The lack of proprieties would make the most intimate friends turn m be the most decided enemies and the friendly or allied countries declare war against each other. We can find many examples in the history of mankind. Therefore I advise you to stand on ceremony before anyone else and to take pains not to do anything against etiquette lest you give offences or make enemies.
如果系统设计采用串行数据传输最高波特率为115200bps、16倍分频,则时钟至少为多少赫兹?
Part A
Suppose you are guiding a group of tourists around a famous scenic spot called Fairyland Island. You are to introduce the following things to them:
1. beautiful scenery and environment of the place
2. specialty or special features of the place
You should write approximately 100 words.
阅读以下说明和C语言代码,回答问题1至问题4,将解答填入答题纸的对应栏内。
[说明]
有两个任务(编号分别为0和1)需要访问同一个共享资源,为了解决竞争条件(race condition)的问题,需要实现一种互斥机制,使得在任何时刻只能有一个任务访问该共享资源。代码一给出了一种实现方法。
[代码一]
1: int flag[2]; /* flag 数组,初始化为FALSE */
2: Enter_Critical_Section(int my_task_id, int other_task_id)
3: {
4: while (flag[other_task_id] == TRUE); /* 空循环语句 */
5: flag[my_task_id] = TRUE;
6: }
7: Exit_Critical_Section(int my_task_id, int other_task_id)
8: {
9: flag[my_task_id] = FALSE;
10: }
当一个任务要访问临界资源时,就可以调用代码一给出的这两个函数。代码二给出了任务0的一个例子。
[代码二]
Enter_Critical_Section(0,1);
…使用这个资源…
Exit_Critical_Section(0,1);
…做其他事情…
什么是临界资源(critical resource)?请用100字以内文字简要说明。