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?
-
What documentation techniques are used in the structured design approach to conceptual design? What is the purpose of each of these documentation techniques, and how do they vary from each other? How...
-
Sally Reynolds sells real estate along the coastal area of Northern California. Below are her total annual commissions between 2007 and 2017. Find the mean, median, and mode of the commissions she...
-
International Publishing Company has the following selected account balances at June 30, 2007. Prepare the stockholders" equity section of International's balance sheet. Inventory $112.000 Common...
-
From the following information, compute the early, late, and slack times for each activity. Identify the critical path. Code Software Lag 2 A Debug Lag 2 Design B D Order Assemble Install Parts Lag 3...
-
Heavy Kat's Ltd. (HK) is looking at acquiring new equipment for the production of the HKMV55, which will cost $7 million and has an estimated useful life of 10 years. For accounting purposes, this...
-
This question studies whether working 4 days a week (therefore not working on Fridays) would increase or decrease the productivity of workers, using a hypothetical scenario that New South Wales has...
-
Read the case study below. Type up your responses to the questions and submit. Very early in my career, a student came into my office. He began by commenting, "I hear that you are a good listener. I...
-
Vincent and Tina Copeland are clients wishing to buy a property in Auckland. They have found a house they like in Blockhouse Bay being sold by Angela and Nikau Jackson, but they have concerns about...
-
1. Using the theories of "Broken Windows" by Wilson and Kelling, define and design a response to one of the neighborhoods in your community that may be in need of increased community policing. What...
-
Anne Hathaway Inc. bought an equipment for $3,550,000 for a project that lasts for 3 years. The asset will be depreciated using a 3-year MACRS schedule shown below. The depreciation percentage each...
-
How do life cycle assessment (LCA) methodologies and advanced decision support tools facilitate the integration of sustainability criteria into the planning, design, and construction phases of...
-
plz ans ASAPwith excel formulaanswer for this last 2 picture All Wired Up Fred Plug has just been hired as an operations analyst for All Wired Up (AWU). AWU manufactures a broad line of portable...
-
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?
-
The height of Watt's governor is (a) directly proportional to the speed (b) directly proportional to the (speed) \({ }^{2}\) (c) inversely proportional to the speed (d) inversely proportional to the...
-
Consider the following statements in respect of four-bar mechanisms: 1). It is possible to have the length of one link greater than the sum of lengths of the other three links 2). If the sum of the...
-
The Fig. 87 shows a critically damped spring-mass system undergoing single degree of freedom vibrations. If \(m=5 \mathrm{~kg}\) and \(k=20 \mathrm{~N} / \mathrm{m}\), the value of viscous damping...
Study smarter with the SolutionInn App