how to use multiple remote displays

Vadim Zeitlin vadim at wxwindows.org
Tue Oct 3 05:44:33 PDT 2006


On Sun, 01 Oct 2006 12:13:06 +0200 Martin Drautzburg <Martin.Drautzburg at web.de> wrote:

MD> The drawback of this approach is that my app uses apx 30 MB per session.

 How do you count memory usage? At least under Linux it's quite not
trivial. In particular I'd be highly surprised if these 30MB were all
unshared.

MD> Since I have to start a new app for every user I would need 1500 GB to
MD> allow 500 users.

 There is an extra/missing 0 or two somewhere, 30MB*500 is more like 15GB.

 And, of course, if you actually need 20 shared MB per user and 10 MB per
instance it becomes "only" 5GB.

MD> (1) Is it possible to access multiple remote DISPLAYs from different threads
MD> of the same process and if so: how ?

 It should be but I honestly don't think you're going to gain much except
the possibility of having many new and exciting bugs by doing it. Using
multiple threads doesn't magically reduce the memory consumption, although
it can reduce the numbers shown by ps.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list