Question

The Windows CreateProcess() system call creates a new process. What is the equivalent system call in...

The Windows CreateProcess() system call creates a new process. What is the equivalent system call in UNIX?

NTCreateProcess()

fork()

process()

getpid()

Homework Answers

Answer #1

Ans. fork()

Explanation - Process is a running instance of a program.processes are created through different system calls , one of them is fork().This system call help parent process in creating child process .child process is an exact duplicate of parent process.The child process has an exact copy of all the memory of the parent process.The child process receives a process number (PID) of its own from the operating system.

Execution of parent process is suspended until child process executes.Return value of fork indicates the process we are in .

0-Means we are in child process

positive number means we are in parent process

negative number means error ocurred.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
The following program calls the fork() system call to create a child process. Suppose that the...
The following program calls the fork() system call to create a child process. Suppose that the actual pids of the parent process and child process are as follows: Parent process: 801 Child process:   802 (as returned by fork) Assume all supporting libraries have been included. => Use the answer text field to write the values of the pids printed at lines 1, 2, 3, and 4 (indicate each line number and the value printed). int main() {      pid_t pid,...
In the 1974 paper The UNIX Time-Sharing System, Dennis Ritchie and Ken Thompson of Bell Laboratories...
In the 1974 paper The UNIX Time-Sharing System, Dennis Ritchie and Ken Thompson of Bell Laboratories describe the original implementation of forking processes as follows: Except while UNIX is bootstrapping itself into operation, a new process can come into existence only by use of the fork system call: processid = fork(label) When fork is executed by a process, it splits into two independently executing processes. The two processes have independent copies of the original core image, and share any open...
Program Assignment 1: Process Management Objective: This program assignment is given to the Operating Systems course...
Program Assignment 1: Process Management Objective: This program assignment is given to the Operating Systems course to allow the students to figure out how a single process (parent process) creates a child process and how they work on Unix/Linux(/Mac OS X/Windows) environment. Additionally, student should combine the code for describing inter-process communication into this assignment. Both parent and child processes interact with each other through shared memory-based communication scheme or message passing scheme. Environment: Unix/Linux environment (VM Linux or Triton...
What are equivalent units? Why are they needed with a process costing system?
What are equivalent units? Why are they needed with a process costing system?
(a) Give the syntax of fork() system call including return values on success and failure. (b)...
(a) Give the syntax of fork() system call including return values on success and failure. (b) Write a complete C-function void creatree(int n); that create a process tree with main process at level 0 and all children at level 1. You can use pause() system call if needed.
Assignment 3 Write a C/C++ windows system program to move a file to a new location...
Assignment 3 Write a C/C++ windows system program to move a file to a new location using the MoveFile function. Write a C/C++ windows system program to delete a file using the DeleteFile function. Upload a ZIP folder containing your source codes.
Write a C program that creates (or spawns) a child process to execute the Unix's command...
Write a C program that creates (or spawns) a child process to execute the Unix's command (echo) with a string as the command-line argument; while the program itself (the parent process) will execute another Unix command less with a filename as the command-line argument. If you aren't sure how the echo and less commands are meant to behave, experiment with them by running them directly from the command line first.
Recommend an appropriate desktop operating system to replace Windows 7 and explain what advantages the operating...
Recommend an appropriate desktop operating system to replace Windows 7 and explain what advantages the operating system would have over Windows 7. You can draw on your personal experience to answer this question.
Which system call should you use to create get the child process’ exit status? What do...
Which system call should you use to create get the child process’ exit status? What do operating systems use to allow multiple processes load from and store to the same address without interfering with each other?
Which statement is true or false? a. The operating system is neither hardware nor software.   ...
Which statement is true or false? a. The operating system is neither hardware nor software.    b. Time spent in the OS is considered overhead. c. A device driver call is a kind of system call in the Unix operating system.     d. The code that changes the system clock runs in user mode.      e. The scheduler allows multiple processes to share the same processor under the           illusion of being the only process.