2010/9/15 HADASS YAARI <[email protected]>:
> Hi Wim,
>
> 3 questions:
>
> 1.       I noticed that the WServer creates about 10-12 threads during its
> execution. As I understand it, the WServer uses a thread pool.
> since I use it for internal purposes, I only need it to support one
> concurrent client, and thus, I only need one thread in the thread pool.
> So the question is – how do I change the default pool size?
>

If you're using the fcgi connector, see the num-threads parameter in
/etc/wt_config.xml.
If you're using the http connector, type ./myapp.wt --help to see the
startup options. One of them allows you to set the number of threads.

> 2.       Is there a way to control the threads’ priority?
>

Use the posix (pthread) functions to modify the thread's priority.
Call this in a specialization of WApplication::notify(), where you
call the original implementation after you've set the priority.

> 3.       When building Wt, how can I build static (.a files) instead of
> dynamic (.so) files?
>

Add -DSHARED_LIBS=OFF to your cmake command line (or uncheck the
option in ccmake or the gui)

Regards,
Wim.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to