For Programmers: Free Programming Magazines  


Home > Archive > ithreads > June 2005 > share packages









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author share packages
Jose L. Hernandez

2005-06-08, 9:03 pm

Hi,

I'm working on a server application based on the boss-worker threads model.
My problem is that the worker threads use a lot of packages, and the memory
usage is too high.
Is it possible to share the memory used by the modules? I don't understand
why it is getting cloned for every thread I start.

Something like "use MyPackage : shared; " would be nice...

Thanks



Paul Archer

2005-06-08, 9:03 pm

Try Elizabeth M's forks package. It's designed as a drop-in replacement for
threads, and has better memory usage in a lot of cases.

3:28pm, Jose L. Hernandez wrote:

> Hi,
>
> I'm working on a server application based on the boss-worker threads model.
> My problem is that the worker threads use a lot of packages, and the memory
> usage is too high.
> Is it possible to share the memory used by the modules? I don't understand
> why it is getting cloned for every thread I start.
>
> Something like "use MyPackage : shared; " would be nice...
>
> Thanks
>
>
>


----------------------------------------------------------
Reporter: "What do you think will be the biggest problem
in computing in the 90's?"
Paul Boutin: "There are only 17,000 three-letter acronyms."
----------------------------------------------------------
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com