answersLogoWhite

0


Best Answer

When using exec() the created process is a subthread of the calling process. They also share an area in the memory and therefore also all permissions and resources.

When you use fork() the newly created process is a complete independent process that has it's own area in memory and also uses it's own permissions depending on what you give it.

Hope this helps clear up things.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between fork and exec?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Types of system call in process management?

fork, exec, wait, exit


What is the difference between the weight of the fork lift and a car?

Depends on the fork lift and the car.


What is the difference between sheet and fork lightening?

One is from Neptune


What is the phase difference between two prongs of tuning fork?

180


What is the difference between fork and vfork?

Look up information on programming.


How you can perform a multitasking in C programming language?

Multi-tasking is supported by the fork and exec subroutines in the C library.


What is difference between Netbackup and Backup Exec?

Well, the major difference between Backup Exec and Netbackup is: 1. Backup exec basically is designed for Windows platform while Netbackup is designed for aan enterprise environment where multi-platform exist. Backup exec can also support other platforms but as a client server only. Media Server of Backup Exec should only reside/installed into a Windows Server. While Netbackup, the media and master server can be installed both on windows and non-windows server. 2. Backup exec has Continous Protection server feature while Netbackup has none. Also, I just want to add, the backup images from Backup Exec can be imported and restored using Netbackup. Hope this answer your inquiry. Mohamed El-Tayeb


For each what system calls give a condition that causes it to fail fork exec and unlink?

exec: Program file does not exist; file exists, but does represent a valid executable file (e.g., it is a spreadsheet); file exists, but the user does not have permission to execute it (e.g., the file does not have the exec bit set, or the user does not have permission to access the file unlink: File does not exist; user does not have permission to access the file. fork: No more processes (OS out of memory).


Whats the difference between 98 expedition and the Eddie Bauer edition?

The difference between 98 expeditions and the Eddie Bauer edition are a few things for example Digital Thermostat, rear vent windows, air suspension, exec...


What is the fork 100mm travel in mountain bikes stands for?

Means that the difference in length between fully extended and fully compressed fork is 100 mm (4").


What system calls have to be executed by a command interpreter or shell in order to start a new process?

In Unix systems, a fork system call followed by an exec systemcall need to be performed to start a new process. The fork call clones thecurrently executing process, while the exec call overlays a new processbased on a different executable over the calling process.


What is exec system call of UNIX operating system?

The exec family of UNIX system calls will overlay the current process with another process. It can be used to "chain" a series of programs to run together. When used with the "fork" system call it allows multi-tasking to occur.