Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Perlmonks Mush, revisited (Perl as as scripting language)

by Kageneko (Scribe)
on Jun 07, 2004 at 16:49 UTC ( [id://362040]=note: print w/replies, xml ) Need Help??


in reply to Perlmonks Mush, revisited (Perl as as scripting language)

Random thoughts:

* Go multithreaded. Have 10 interpreter threads and a monitor thread. If a particular thread is taking too long at a task, the monitor will kill the thread and start a new one.

* Fork the interpreter children at the beginning and trade data with them via pipes. In your mush's MainLoop, have it check some kind of magic data for the End-of-processing message. If things take too long, send SIGHUP (or something) to the child and have the child kill things.

Implementation details are left up to the reader. These are just ideas :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://362040]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-03-28 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found