Web compiler production questions

Asked 2 years ago, Updated 2 years ago, 97 views

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

2022-09-22 20:57

1 Answers

It seems to be using a web socket related to the web console. There's an open-source project.

http://web-console.org

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.


2022-09-22 20:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.