[Mono-devel-list] Limiting Memory Allocation

Thomas Harning Jr. harningt at gmail.com
Wed May 4 20:55:53 EDT 2005

Richard Matthias wrote:
> this is for example is if you need to schedule lots of code to run
> concurrently you have to use OS threads. That's OK for a web server
> that might have 10 or maybe 20 ASP.NET apps running on it, but if you
> gave every script on a SecondLife server a seperate thread the machine
> would grind to a halt.  Likewise .NET doesn't have a mechanism that's
About the threads, with .Net 2.0, you can sort of implement your own scheduler using iterators.  Essentially, you'd require that scripts have various "yield"s throughout and then loop through a list of script items iteratively.  Now.. this might not be great due to that yield requirement... unless you have control of the code.
Just my 2cents

Thomas Harning Jr.

More information about the Mono-devel-list mailing list