Librenix
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Forking vs. Threading

Up
vote
Down

What is Fork/Forking:
Fork is nothing but a new process that looks exactly like the old or the parent process but still it is a different process with different process ID and having it’s own memory. Parent process creates a separate address space for child. Both parent and child process possess the same code segment, but execute independently from each other.

What are Threads/Threading:
Threads are Light Weight Processes (LWPs). Traditionally, a thread is just a CPU (and some other minimal state) state with the process containing the remains (data, stack, I/O, signals). Threads require less overhead than “forking” or spawning a new process because the system does not initialize a new system virtual memory space and environment for the process.
 read more | mail this link | score:9478 | -Napster, March 1, 2010
More Programming articles...

Large Canvas Abstract Art Prints

Selected articles

Librenix T-Shirts and Coffee Mugs!

Space Tyrant: A multiplayer network game for Linux

Missing the point of the Mac Mini

Closed Source Linux Distribution Launched

Graffiti Server Download Page

Beneficial Computer Viruses

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin