Currently I'm working in a case study to integrate IronRuby into one of our core products. The exection of scripts in only possible in a synchronous manner, so I plan to execute the scripts in threads each.
But additionally I need a bit more control over the script execution, esp. I need a way to suspend a script and resume it at a later point in time. I think I need to store a stackframe incl. all variables at the time of script suspension, I call this a "runtime context". Alas I did not find a way to "monitor" the script execution in the required manner. (I checked out using call backs to the hosting language via dynamic objects, but this technique does not provide the required context.)
Does anybody out there have a clue how to approach this problem?