[Qt-interest] TcpServer: fork or threads?
Josinei Silva
josinei_listas at yahoo.com.br
Mon Feb 2 17:51:36 CET 2009
Thiago, Andrey,
I think this server will not have too many users, at least not at the same
time. So, maybe scalability should not be a problem. Individual performance
should be more important. But i'll read that papper, we'll never know about
the future and if our guesses are right.
I'm trying to do it with threads.
Thanks a lot for your help.
Josinei
Em Monday 02 February 2009 13:13:07 Thiago Macieira escreveu:
> Em Segunda-feira 02 Fevereiro 2009, às 14:39:41, Josinei Silva escreveu:
> > Its safe to use fork with Qt, tcp sockets and sql module? It''s better to
> > use threads even with no communication between each request?
>
> After a fork, it's not safe to use anything that was created before the
> fork.
>
> Which means you have to be extremely careful about how you create your
> things. You may need deeper control of some things than Qt provides.
>
> So I recommend you just use threads.
More information about the Qt-interest-old
mailing list