subject

Write a C or C program E2p1.c(pp) that accepts one command line argument which is an integer n between 2 and 6 inclusive. the program should read from stdin as many english words as there are available. each word is promised to consist of from 3 to 20 lower case English characters and occupies a separate input line. use pthread to create n threads to count how many of these words contain "ea" as a subword. for example, the word peaceful contains "ea" as a subword but the word butterfly does not. The program should start the task of finding and counting matching and put words after all the input words have been received from the user in this task should be divided among the created n threads as evenly as possible. in the end the program should print the number of input words and the number of matching words found.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:00
Write the command that can be used to answer the following questions. (hint: try each out on the system to check your results.) a. find all files on the system that have the word test" as part of their filename. b. search the path variable for the pathname to the awk command. c. find all files in the /usr directory and subdirectories that are larger than 50 kilobytes in size. d. find all files in the /usr directory and subdirectories that are less than 70 kilobytes in size. e. find all files in the / directory and subdirectories that are symbolic links. f. find all files in the /var directory and subdirectories that were accessed less than 60 minutes ago. g. find all files in the /var directory and subdirectories that were accessed less than six days ago. h. find all files in the /home directory and subdirectories that are empty. i. find all files in the /etc directory and subdirectories that are owned by the group bin."
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
It is not necessary to develop strategies to separate good information and bad information on the internet. true or false
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
He 98 pointsss how has computers changed over the years? how can they be used now? give details and such!
Answers: 1
question
Computers and Technology, 25.06.2019 05:30
Radar devices are used by law enforcement to be sure that individuals are driving safely. they tell the officer how fast the vehicle is traveling at that specific moment in time. the radar device determines the vehicle's a. instantaneous speed. b. acceleration. c. maximum velocity. d. average speed.
Answers: 1
You know the right answer?
Write a C or C program E2p1.c(pp) that accepts one command line argument which is an integer n betwe...
Questions
Questions on the website: 13722363