After writing the code and handing it over to the server, I tried to save it as a code file, compile it, run it, and send you the execution result, but now that I can't use the input function, I can make an account and connect it together to show the Linux execution screen. I'm a little worried about infinite loops and using commands... How can you compile, show the execution screen in real time, and communicate with each other?
compiler
It seems to be using a web socket related to the web console. There's an open-source project.
If you want to prevent infinite loops, you need to isolate each user You can use something like a docker to limit cpu and memory for each user.
© 2024 OneMinuteCode. All rights reserved.