[fpc-pascal]FreePascal as a server?

Tim Gustafson tjg at falconsoft.com
Fri Oct 4 23:56:35 CEST 2002


> The heapmanager in the RTL is not threadsafe. Using the cmem unit it is
> possible as long as you don't use standard pascal IO like
> Writeln()/Readln(). You need to use the fdopen() from the Unix unit.

What about forking multiple processes, as Apache does?  Would that be
safer?

Tim

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Tim Gustafson - support at falconsoft.com       http://www.falconsoft.com/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
         Share your knowledge - it's a way to achieve immortality.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

You need only two tools. WD-40 and duct tape.
If it doesn't move and it should, use WD-40.
If it moves and shouldn't, use the tape.





More information about the fpc-pascal mailing list