subject

Write one c program to measure the average time to create a thread using pthread_create() and to create a process using

1. use a for loop to create 300 threads using and measure the total time to create these 300 threads. then compute its average;
2. use a for loop to create 300 processes using and measure the total time to create these 300 processes. then compute its average;
briefly describe the reasons for the difference in timings.
it needs to use gettimeofday() to retrieve the system time.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Which of the following is a way that advancements in technology improve humans' ability to measure air quality and protect human health? a. air quality data gathered by new instruments can be used to reduce exposure to pollutants. b. new technologies enable natural and human-made pollution sources to be located and monitored. c. air quality data gathered by new instruments can be used to predict trends in pollution over time. d. new technologies allow governments to make informed decisions about the regulation of pollution. (choose more than one)
Answers: 2
question
Computers and Technology, 22.06.2019 16:00
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
question
Computers and Technology, 23.06.2019 04:40
The narrative structure of the popular movies can be broken down into
Answers: 3
question
Computers and Technology, 24.06.2019 03:00
Will do anything for brainlest so can you guys me out i will try my best to you out
Answers: 1
You know the right answer?
Write one c program to measure the average time to create a thread using pthread_create() and to cre...
Questions
question
Geography, 29.11.2019 04:31
Questions on the website: 13722360