[Qt-interest] TcpServer: fork or threads?
Thiago Macieira
thiago.macieira at trolltech.com
Mon Feb 2 16:13:07 CET 2009
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.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Software
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090202/ceb1f860/attachment.bin
More information about the Qt-interest-old
mailing list