Computers |
|
| | #1 (permalink) |
| True Techie Join Date: Jan 2006 Location: Earth
Posts: 171
| what is difference between threads and light weight processes? (i didnt know where to post this question. so feel free to move my post.) by the way i have referred to two books by Tannenbaum and i have found contradictory answers and thats why i am asking this question here!! thanks in advance n c ya!! |
| | |
| | #3 (permalink) |
| Commander Super Mod Joker Join Date: Sep 2004 Location: In Trotter's crawl space
Posts: 15,446
| Apparently no one here codes a OS. So we dont know the answer. Maybe ask in a Linux community where they have coder there who would know a answer to something like this? |
| | |
| | #4 (permalink) |
| True Techie Join Date: Oct 2005
Posts: 199
| A thread is a separate path of execution through an instance of a program contained within the address space of a process (In Linux a thread is implemented as a special process). A process, 'lightweight' or not, is an instance of a program in its own address space. By lightweight I understand you mean the memory size that a process will consume. This is determined by the kernel at runtime and will allocate the processes address space accordingly. This may increase during runtime with the creation of threads and allocation of heap memory. You can not determine what the kernel will do, your process may even be killed by the Linux kernel OOM Killer in certain situations. For more information read the Advance Linux Programming book, it contains chapters dedicated to threads and processes with programming examples in C using pthreads and the exec* family of function calls. |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Missing operating system | RobertXYZ | Building, Buying, Upgrading for General PCs | 5 | 01-26-2008 01:49 PM |
| Copy entire operating system to portable hard drive? | JB Rekit | Windows Operating Systems and Software | 11 | 12-21-2007 12:46 PM |
| seagate 80gigs failing.. | acuariano | Hardware Troubleshooting | 27 | 08-27-2007 09:43 PM |
| Operating System not found on bootup | rogue152 | Windows Operating Systems and Software | 4 | 08-08-2007 04:45 AM |
| AMD Athlon™ 64 X2 Dual Core Processor Utilities & Updates | Osiris | Overclocking, Case Mod, Tweaking PC Performance | 6 | 05-31-2007 12:41 PM |