Friday, May 1, 2026

What is the difference between fork() and exec()?

fork() → creates a copy of the process exec() → replaces process memory with a new program Typically used together to spawn programs.

No comments:

Post a Comment