LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-05-2006, 03:50 AM   #1
vskgopu
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 vskgopu@gmail.com
 
Old 05-05-2006, 11:20 PM   #2
visaris
Member
 
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, 10:40 PM   #3
vskgopu
LQ Newbie
 
Registered: May 2006
Posts: 17

Original Poster
Rep: Reputation: 0
thanks friend
 
  


Reply


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 03:13 PM
Which is best for implementing SMTP server in unix.. fork or pthread ? vskgopu Programming 1 05-06-2006 08:06 AM
Sockets, pthread, pipe, and fork -- a messaging server ggravarr Programming 3 06-28-2005 03:39 PM
Implementing SMTP Email bdk05 Linux - Networking 2 09-29-2004 01:52 PM
Cannot connect to any SMTP Servers? DiZASTiX Linux - General 13 06-16-2003 02:07 AM


All times are GMT -5. The time now is 10:13 AM.

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