首页 > 其他 > 详细

OSTEP第十三章测试题

时间:2020-07-02 09:10:04      阅读:76      评论:0      收藏:0      [点我收藏+]
2. Now, run free, perhaps using some of the arguments that might be useful (e.g., -m, to display memory totals in megabytes). 
How much memory is in your system? 
How much is free? Do these numbers match your intuition?
siuwhat@siuwhat-PC:~/Desktop/HW-Lottery$ free -m
              total        used        free      shared  buff/cache   available
Mem:           1970        1305         123          44         541         461
Swap:          4095          70        4025
3. Next, create a little program that uses a certain amount of memory, called memory-user.c. This program should take one command-line argument: the number of megabytes of memory it will use. When run, it should allocate an array, and constantly stream through the array, touching each entry. The program should do this indefinitely, or, perhaps, for a certain amount of time also specified at the command line.

 

OSTEP第十三章测试题

原文:https://www.cnblogs.com/otakus/p/13222486.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!