User Tools

Site Tools


threads_vs_processes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
threads_vs_processes [2025/04/01 15:57] carlthreads_vs_processes [2025/04/10 12:57] (current) – [Process Wide] carl
Line 18: Line 18:
  
 The main reason I see for using fork() is that you don't need to serialize (pickly) the data shared between forked processes.  This is especially useful for sharing lambdas and other closures, which cannot be serialized or imported. The main reason I see for using fork() is that you don't need to serialize (pickly) the data shared between forked processes.  This is especially useful for sharing lambdas and other closures, which cannot be serialized or imported.
 +
 +
 +
 +
 +===== Process Wide =====
 +
 +Here are some things that are shared across the process:
 +
 +  - Environment variables
 +  - Argv
 +  - Signal Handlers
 +  - FDs
 +  - Linked Libraries
 +  - Statically initialized storage
 +  - Page Table
 +    - TLB?
 +
 +
 +
threads_vs_processes.1743548269.txt.gz · Last modified: by carl