开发者

Suspend JamVM and Restart It?

开发者 https://www.devze.com 2023-03-14 05:00 出处:网络
I am working on JamVM, a popular small Java VM, and I would like to stop it (suspend all the threads), execute a function within the VM (a C f开发者_开发知识库unction) and then restart all the threads

I am working on JamVM, a popular small Java VM, and I would like to stop it (suspend all the threads), execute a function within the VM (a C f开发者_开发知识库unction) and then restart all the threads.

I tried to handle a signal (Ctrl-C), execute my function, but this didn't work, because every signal the VM receives, it transmits it to the running java program...

So do you have a way to stop a VM, and then restart it? (with or without signals, it doesn't matter)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号