全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 2432|回复: 18
打印 上一主题 下一主题

[疑问] 续:美国本科作业, 本周的作业题

[复制链接]
跳转到指定楼层
1#
发表于 2011-10-15 09:20:27 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
本周翘课了,求辅导。

作业1:
    Read the man page for the time command for observing various timing measurements on Linux.
    Run the timing experiments for the suggested number of test runs and record the results.
    Use the Linux sort command. You will need a large datafile. This can be any text document and can be concatenated mutltiple times to produce a large enough file. Note that if the file is too small, you will not get a useful measurement. Also, keep an unsorted copy so you can repeat the tests.
    Write your observations regarding the timing experiments:
        Include the data with your observations.
        Comment on the differences between the types of time measurements supplied by the time command and how you used each one.

作业2: 编程
    Write a simple program that exercises various system resources such as memory allocation, CPU usage, and I/O usage. Design a calculation for some expression and run a range of values in the expression in a loop. You will need to make a large number of iterations to make this work so you can time it.
    Using the time command under Unix, measure the time required for the program to run. Divide each time by the number of operations that the program reports. Estimate running time based on the number of operations your program will use.
    Analyze the code and timing. Compare the three program types (memory allocation bound, CPU bound, and I/O bound) and speculate on why differences may occur.
19#
发表于 2011-10-15 15:41:41 | 只看该作者
18#
发表于 2011-10-15 15:15:48 | 只看该作者



好简单   比我学linux的时候简单
17#
发表于 2011-10-15 15:14:34 | 只看该作者
原帖由 geyunbing 于 2011-10-15 09:32 发表
   不懂。
16#
发表于 2011-10-15 15:10:22 | 只看该作者
有个威客网站可以拿点钱*帮做家庭作业*的。
15#
发表于 2011-10-15 11:54:52 | 只看该作者
看不懂。
14#
发表于 2011-10-15 10:55:56 | 只看该作者
操作系统作业?
13#
发表于 2011-10-15 10:41:18 | 只看该作者
原帖由 未完成 于 2011-10-15 10:28 发表
去水木清华问吧  包解决
12#
发表于 2011-10-15 10:28:04 | 只看该作者
去水木清华问吧  包解决
11#
 楼主| 发表于 2011-10-15 10:23:43 | 只看该作者
  后天要交
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-9-28 03:12 , Processed in 0.062938 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表