Which of the following is NOT a process state? Waiting Terminated Communicating Ready Running Which of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Which of the following is NOT a process state? Waiting Terminated Communicating Ready Running Which of the following is TRUE for Unix processes? Parent and child processes share the same address space. A child process occupies only a part of the parent's address space. Each process in the system is identified by a unique identifier. The child processes can run concurrently, but the parent process has to wait for the child processes to finish before continuing. A process is terminated after all its child processes are terminated. Which of the following statements is correct? None of the other answers are correct. The fork() function returns the PID of the created child process, or 0 if error occurs. Each process in a Unix system runs on a separate processor core. A process can terminate another process using the wait() function. The exec() function creates a new process running the specified program. Which of the following is correct for the pipe() function? None of the other answers are correct. The pipe() function changes standard input and output. The pipe() function returns a file descriptor for either read or write depending on whether it's called by parent or child. The pipe() function returns a file descriptor for both read and write. The pipe() functions sets two file descriptors, one for read and the other for write. char buf[10]; int fd[2]; pipe(fd); if(fork() != 0) { dup2(fd[0], 0); } close(fd[0]); close(fd[1]); read(0, buf, 10); } else { dup2(fd[1], 1); close(fd[0]); close(fd[1]); write(1, "hello", 6); Which of the following statements is correct? The child process is sending a message to the parent. The two processes cannot communicate with one another; one cannot alter the standard input and output. The two processes cannot communicate with one another; the pipe has been closed before communication takes place. The parent process is sending a message to the child. None of the other answers are correct. Which of the following is NOT a process state? Waiting Terminated Communicating Ready Running Which of the following is TRUE for Unix processes? Parent and child processes share the same address space. A child process occupies only a part of the parent's address space. Each process in the system is identified by a unique identifier. The child processes can run concurrently, but the parent process has to wait for the child processes to finish before continuing. A process is terminated after all its child processes are terminated. Which of the following statements is correct? None of the other answers are correct. The fork() function returns the PID of the created child process, or 0 if error occurs. Each process in a Unix system runs on a separate processor core. A process can terminate another process using the wait() function. The exec() function creates a new process running the specified program. Which of the following is correct for the pipe() function? None of the other answers are correct. The pipe() function changes standard input and output. The pipe() function returns a file descriptor for either read or write depending on whether it's called by parent or child. The pipe() function returns a file descriptor for both read and write. The pipe() functions sets two file descriptors, one for read and the other for write. char buf[10]; int fd[2]; pipe(fd); if(fork() != 0) { dup2(fd[0], 0); } close(fd[0]); close(fd[1]); read(0, buf, 10); } else { dup2(fd[1], 1); close(fd[0]); close(fd[1]); write(1, "hello", 6); Which of the following statements is correct? The child process is sending a message to the parent. The two processes cannot communicate with one another; one cannot alter the standard input and output. The two processes cannot communicate with one another; the pipe has been closed before communication takes place. The parent process is sending a message to the child. None of the other answers are correct.
Expert Answer:
Answer rating: 100% (QA)
The detailed answer for the above question is provided below 1 c Communicating is not a process state Processes can be in one of several states including waiting terminated ready and running Waiting A ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
UNIX coordinates the activities of the kernel I/O components by manipulating shared in-kernel data structures, whereas Windows NT uses object-oriented message passing between kernel I/O components....
-
UNIX systems used to use disk-layout optimizations based on the rotation position of disk data, but modern implementations, including Linux, simply optimize for sequential data access. Why do they do...
-
UNIX treats file directories in the same fashion as files; that is, both are defined by the same type of data structure, called an inode. As with files, directories include a 9-bit protection string....
-
Which subject does Corporate social responsibility belong to?
-
Selected account balances from the adjusted trial balance for Harton Corp. as of its calendar year-end December 31, 2009, follow. Required Answer each of the following questions by providing...
-
This problem continues the analysis of McDonalds and Dow Jones stock market data. a. Find the 95% confidence interval for the percent change in McDonalds stock on a day in which the Dow Jones Index...
-
When an accountant testifies in court, the testimony may fall into two broad classes. Discuss them.
-
The East Eanes School District engaged in or was affected by the following events and transactions during its scal year ending June 30, 2015. 1. Teachers and other personnel earned $350,000 in...
-
The data in the following table were adapted from the filelabeled Stock Comparison, and consist of a sample of 12monthly adjusted stock prices for technology company Apple, Inc.,and consumer-goods 2...
-
During 2020, you were hired as the Chief Financial Officer for MC Travel Inc., a fairly young travel company that is growing quickly. A key accounting staff member has prepared the financial...
-
Question 10 A company is going to issue a $1,000 par value bond that pays a7% annual coupon. The company expects the market price to be $942for the 20-year bond. The expected flotation cost per bond...
-
1) Acme Manufacturing Company has received a contract to deliver home windows over the next 6 months. The successive demands for the six periods are 10, 250, 190, 140, 200, and 110 respectively....
-
Recommendation/Discussion: Discuss about two important challenges you face in producing what willow, the first wearable breast pump designed. What do you suggest to tackle these two challenges?
-
The four challenges that face managers within the legal environment or any organization include: Multiple select question. determining how to handle delicate situations such as employees who have...
-
Tammy Faye requires a 12% before-tax return on her real estate investments. If she invests $78,000 cash to buy a rental townhouse that has $120 per month in taxes, insurance, and maintenance, and if...
-
Assess the challenges of managing organizational culture in multinational corporations with diverse regional or national cultures. How can companies promote a unified culture while respecting local...
-
Question 4 Assuming it is 1 st July today, and consider your corporation need to borrow $100,000,000 for 3 months from 1 st October to 30 th December. The prevailing fixed agreement rate is 8.00%...
-
7. Baladna wants to analyze process that includes delivery by suppliers, production inside the company, transportation to to its customers and information systems. Then it also wants to find out...
-
Tri-coat Paints has a current market value of $41 per share with earnings of $3.64. What is the present value of its growth opportunities (PVGO) if the required return is 9%?
-
Where would an illiquid security in a developing country most likely trade? a. Broker markets. b. Electronic crossing networks. c. Electronic limit-order markets.
-
Balanced funds, life-cycle funds, and asset allocation funds all invest in both the stock and bond markets. What are the differences among these types of funds?
-
Question: Uncle signed a lease with Landlord on a storefront in Georgetown, D.C. Uncle convinced Nephew to start a furniture store in the space. Uncle and Nephew formed a corporation to operate the...
-
Question: Ajouelo signed an employment contract with Wilkerson. The contract stated: "Whatever company, partnership, or corporation that Wilkerson may form for the purpose of manufacturing shall...
-
Question: You are the CEO of a software company. You will only allow your engineers to create software for Apple computers, not for PCs because you think Apple is cooler and you hate Microsoft. Some...
Study smarter with the SolutionInn App