Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-05-2006, 02:50 AM   #1
LQ Newbie
Registered: May 2006
Posts: 17

Rep: Reputation: 0
Which is best for implementing SMTP servers in unix.. fork or pthread ?

Hi am kamesh from india..
Which is best for implementing SMTP servers in unix.. fork or pthread ?
Hi friends ..
I am implementing a smtp relay server for delaying the mails for a "x" minutes. I dont know which one to use fork or pthread..
plz help me. my mail id is
Old 05-05-2006, 10:20 PM   #2
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
For implementing? Well, it depends...

The fork() method is probably more portable and would probably provide more consistant results. fork() is also going to be slower if you plan on doing much IPC, though I don't see that as much of an issue with a SMTP relay..

I would think pthreads would be easier to write with, would end up faster, and should be portable enough. If this will run on a system with good pthread support (NPTL, etc) I would choose the pthread library over fork().
Old 05-07-2006, 09:40 PM   #3
LQ Newbie
Registered: May 2006
Posts: 17

Original Poster
Rep: Reputation: 0
thanks friend


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
fork vs thread/pthread powerplane Programming 17 08-11-2012 02:13 PM
Which is best for implementing SMTP server in unix.. fork or pthread ? vskgopu Programming 1 05-06-2006 07:06 AM
Sockets, pthread, pipe, and fork -- a messaging server ggravarr Programming 3 06-28-2005 02:39 PM
Implementing SMTP Email bdk05 Linux - Networking 2 09-29-2004 12:52 PM
Cannot connect to any SMTP Servers? DiZASTiX Linux - General 13 06-16-2003 01:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration