The table below contains the list of system calls you will make as well as related...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The table below contains the list of system calls you will make as well as related header files that contain the declarations. In addition, there are some notes on how the output needs to be formatted for the utility. For sample data, see the screen captures above. Information Current Date Current Time Last reboot # processors configured # processors available # current processes Total usable memory Available memory Shared memory Buffer memory Total swap space Available swap. space Header file / System Call(s) #incude time_t time(time_t *tloc) struct tm localtine(const time_t *timer) #include int sysinfo(struct sysinfo *info) #include int get_nprocs_conf(void) #include int get nprocs(void) #include int sysinfo(struct sysinfo info) Formatting Notes Notice the use of month and weekday names. The functions return numbers. Must be converted to the local time. before printing the values Display in seconds and days, 2 decimal places Try typing "man sysinfo" from your bash shell for information on this struct, or google it. The data is returned as bytes. Convert to GB, 3 decimal places The data is returned as bytes. Convert to GB, 3 decimal places The data is returned as bytes. Convert to MB, 2 decimal places The data is returned as bytes. Convert to MB, 2 decimal places The data is returned as bytes. Convert to MB, 2 decimal places The data is returned as bytes. Convert to MB, 2 decimal places 5. Other Requirements/Notes The following list includes other requirements that your program must perform. The program must print a heading which includes the class name (ACO350) and your name. The data should be displayed neatly, with the fields lined up as shown in the samples. The month and day of the week must display as strings, not numbers. The memory reports should be converted to GB or MB as shown in the table above. Pay attention to the required precision in the numbers. Turn in your source file: sysutil.c. If you created any other source files, submit them as well. There is a small starting file in Mod1/sysutil/sysutil.c and a makefile in the same directory. The table below contains the list of system calls you will make as well as related header files that contain the declarations. In addition, there are some notes on how the output needs to be formatted for the utility. For sample data, see the screen captures above. Information Current Date Current Time Last reboot # processors configured # processors available # current processes Total usable memory Available memory Shared memory Buffer memory Total swap space Available swap. space Header file / System Call(s) #incude time_t time(time_t *tloc) struct tm localtine(const time_t *timer) #include int sysinfo(struct sysinfo *info) #include int get_nprocs_conf(void) #include int get nprocs(void) #include int sysinfo(struct sysinfo info) Formatting Notes Notice the use of month and weekday names. The functions return numbers. Must be converted to the local time. before printing the values Display in seconds and days, 2 decimal places Try typing "man sysinfo" from your bash shell for information on this struct, or google it. The data is returned as bytes. Convert to GB, 3 decimal places The data is returned as bytes. Convert to GB, 3 decimal places The data is returned as bytes. Convert to MB, 2 decimal places The data is returned as bytes. Convert to MB, 2 decimal places The data is returned as bytes. Convert to MB, 2 decimal places The data is returned as bytes. Convert to MB, 2 decimal places 5. Other Requirements/Notes The following list includes other requirements that your program must perform. The program must print a heading which includes the class name (ACO350) and your name. The data should be displayed neatly, with the fields lined up as shown in the samples. The month and day of the week must display as strings, not numbers. The memory reports should be converted to GB or MB as shown in the table above. Pay attention to the required precision in the numbers. Turn in your source file: sysutil.c. If you created any other source files, submit them as well. There is a small starting file in Mod1/sysutil/sysutil.c and a makefile in the same directory.
Expert Answer:
Related Book For
Operations and Supply Chain Management
ISBN: 978-1119444404
9th edition
Authors: Roberta S. Russell, Bernard W. Taylor
Posted Date:
Students also viewed these algorithms questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
answer the following questions about the countries below using CIA factbook Economic Systems Continuum Activity: Country Information Cards Answer the following questions about the countries below...
-
In your opinion, what type of knowledge is more important to an MNE-explicit or tacit? Why?
-
Joe Barnes is the owner of Standing Tall, one of the major roofing companies in town. Much of the companys business comes from building roofs on new houses. Joe has learned that general contractors...
-
Measure context switching overhead on an operating system.
-
On 30 April 20X2, Neuman Limited sells a product to a customer for $ 600,000. The product carries a one- year assurance warranty. Neuman management estimates that the probable cost of fulfilling the...
-
You have the following information from the Garry Electrical company about its buildings acquired on January 1, 2018: Buildings acquisition cost Useful life $ 4,500,000 20 years 75000 Residual value...
-
Dwight Donovan, the president of Donovan Enterprises, is considering two investment opportunities. Because of limited resources, he will be able to invest in only one of them. Project A is to...
-
Imagine your manager has requested that everyone in the company take the Strengths Finder test. Now, your manager has asked you to put together a training tool on how to best coach and develop...
-
What are the intricate biochemical pathways involved in cellular metabolism, and how do they regulate the conversion of nutrients into energy and biomolecules?
-
What are the implications of mitochondrial heteroplasmy, the presence of multiple mtDNA variants within an individual cell or organism, for mitochondrial function, inheritance patterns, and disease...
-
How do metabolic disorders, such as inborn errors of metabolism or metabolic syndrome, arise from disruptions in the finely tuned equilibrium of metabolic pathways, and what are the molecular...
-
What is the temperature inside the cylinder once you compress it ? Note that y = 1 . 4 for diatomic gases, and air is 9 9 % diatomic gases.
-
Two identical conducting spheres, fixed in place, attract each other with an electrostatic force of 0.6451 N when their center-to-center separation is 50 cm. The spheres are then connected by a thin...
-
Suppose that A = 7.0, B = 4.0, C = 3.0, and D = -2.0. Evaluate the following prefix expressions (a) * A / + B C D (b) * / + A B C D (c) A B C D (d) A B C D (e) A B C D (f) A B C D (g) + A...
-
Suppose the spot and six-month forward rates on the Norwegian krone are Kr 5.78 and Kr 5.86, respectively. The annual risk-free rate in the United States is 3.8 percent, and the annual risk-free rate...
-
Briefly describe how operations has evolved from the Industrial Revolution to the Digital Revolution.
-
K&N Management is a 2010 Malcolm Baldrige Award winner in the small business category. Compare the quality of K&Ns restaurants with a similar type of fast food restaurant you have visited before. The...
-
As part of an aggressive expansion plan, StarTrack Coffee is planning to open three new retail stores in the city. The table shows the location factors it considers important indicators of future...
-
Light focusses onto a point I from a point \(\mathrm{O}\) after reflecting off a surface that completely surrounds the two points, as shown in cross section below. The shape of the surface is such...
-
Consider the ray shown bouncing off the bottom of the surface in the preceding problem. Replace the surface at this point by the more highly-curved surface shown in dotted lines. The ray still...
-
When bouncing off a flat mirror, a light ray travels by a minimum time path. (a) For what shape mirror would the paths of all bouncing light-rays take equal times? (b) Is there a shape for which a...
Study smarter with the SolutionInn App