IBM developerWorks: Managing processes and threads
Feb 14, 2002, 15:17 (2 Talkback[s])
(Other stories by DR. Edward G. Bradford)
"In the previous column we took an initial look at
programming sockets and reviewed some performance measurements of
the socket code operating completely within a single system. The
measurements do not reflect network transmission rates, but they do
indicate the maximum possible throughput for sockets. A future
column will go into more detail and investigate the delay algorithm
and transmission speeds over real network adapters and real
networks.
This month's column will show how to create and dispose of
processes and threads. Threads and processes are very similar. In
fact, in Linux, threads and processes are almost
indistinguishable.
...I have talked briefly about processes and threads, and
demonstrated the programming of both in a program I wrote. After
measuring the performance of process and thread creation, Linux
seems to be faster on both counts than either Windows 2000 or
Windows XP. You're welcome to download the test script,
create-pt2a-sh.sh, and the source code for create-pt2a.cpp (see
Resources below) and run it yourself."
Complete Story
Related Stories:
- IBM developerWorks: POSIX threads explained, Part 3 - Improve efficiency with condition variables(Sep 17, 2000)
- IBM developerWorks: POSIX threads explained, Part 2 - The little things called mutexes(Aug 27, 2000)
- IBM developerWorks: POSIX threads explained - A simple and nimble tool for memory sharing(Aug 06, 2000)
- IBM developerWorks: Java, threads, and scheduling in Linux, Patching the kernel scheduler...(Jan 30, 2000)
- Linux Gazette: LinuxThreads Programming(Dec 26, 1999)