DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th August 2008
drhowarddrfine drhowarddrfine is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 358
Thanked 9 Times in 8 Posts
Default Forking and overhead in FreeBSD

I thought I read somewhere that FreeBSD implemented some method where forking was now virtually the same overhead as setting up threads. There's some guy arguing with me that everything in the 'nixes is done with forking, not threading, and windows is so much better, blah blah blah, which is what made me think I had read something somewhere about that.
Reply With Quote
  #2   (View Single Post)  
Old 13th August 2008
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 376
Thanked 13 Times in 13 Posts
Default

There is a FreeBSD Threads mailing list.

http://lists.freebsd.org/mailman/lis...reebsd-threads

What exactly is windows better at managing threads? And is he programming in .NET?
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #3   (View Single Post)  
Old 14th August 2008
fridder fridder is offline
Port Guard
 
Join Date: May 2008
Posts: 12
Thanked 0 Times in 0 Posts
Default

He is probably biased towards threads due to the fact that forking a process in Windows is expensive. Here is part of a discussion on threads and forks on the python mailing list that is quite applicable:
Quote:
I think you're overestimating the sophistication of the average
extension developer, and the hardware to which they have access.

Nevertheless, you're right the GIL is not as bad as you would
initially think: you just have to undo the brainwashing you got from
Windows and Java proponents who seem to consider threads as the only
way to approach concurrent activities.

Just because Java was once aimed at a set-top box OS that didn't
support multiple address spaces, and just because process creation in
Windows used to be slow as a dog, doesn't mean that multiple processes
(with judicious use of IPC) aren't a much better approach to writing
apps for multi-CPU boxes than threads.

Just Say No to the combined evils of locking, deadlocks, lock
granularity, livelocks, nondeterminism and race conditions.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
The original

Last edited by fridder; 14th August 2008 at 12:09 AM. Reason: Forgot to paste in the name of the original poster.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Timer overhead? Sunnz Programming 0 2nd May 2009 07:26 AM
USB3.0, is forking? TerryP Off-Topic 2 5th June 2008 01:13 AM


All times are GMT. The time now is 03:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick