subject

Construct an array of 1000 random integers within range [0, 100]. An input file input. txt is provided. Each line of input. txt is a query integer that you need to check how many of that number is in your random integer array. For each query integer, fork a new child process to do the counting. The output is for each input query, output the count and child process id. For example:

$> query: 13 count: 5 pid: 13342

$> query: 22 count: 3 pid: 13357

input. txt
5
13
24
6
17
20
1
51
36
42
2
19
67
35
64
91
96
84
72

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Ican’t open these when it’s just a comment. someone pls explain why this is happening
Answers: 1
You know the right answer?
Construct an array of 1000 random integers within range [0, 100]. An input file input. txt is provid...
Questions
question
Mathematics, 03.04.2020 16:08
Questions on the website: 13722367