smile_users's blog

By smile_users, history, 5 days ago, In English

As someone who spends time solving programming problems, I have always been curious about what actually happens behind the scenes when we submit our code to an online judge.

How is the code compiled? How are test cases executed? How does the system determine whether a solution is Accepted or Wrong Answer? And how are multiple submissions handled simultaneously?

I wanted to explore these questions beyond theoretical knowledge. That curiosity eventually led me to build GrowCode – A Multi-User Resource-Aware Code Execution and Management Platform.

What I Explored

While developing GrowCode, I worked on understanding and implementing different parts of a code execution workflow:

  • C++ Backend: Handling requests and managing the execution workflow.
  • Process Management: Understanding how submitted programs are compiled, executed, and terminated.
  • Worker Pool: Exploring concurrent task processing and worker management.
  • Docker: Running submitted programs in isolated execution environments.
  • MySQL: Managing users, problems, test cases, submissions, and execution results.
  • Resource Management: Exploring execution-time and resource constraints.

Concepts I Got to Explore

This project gave me an opportunity to connect different areas of Computer Science:

  • Operating Systems: Processes, threads, synchronization, and resource management.
  • DBMS: Relational database design, SQL, and relationships.
  • Backend Engineering: Request handling, job scheduling, and modular architecture.
  • System Design: Understanding how different components communicate and work together.

What I Learned

The most interesting part was realizing that a seemingly simple action like submitting code involves several components working together.

I started this project mainly out of curiosity, wanting to understand how online judges work at some level. Along the way, I got to explore concepts that I had previously studied mostly in theory and see how they come together in practice.

There is still a lot to learn and improve, but this has been a valuable hands-on experience.

GitHub Repository:
https://github.com/ashutosh691/GrowCode

I'd be happy to hear suggestions, feedback, or interesting insights from others who have explored code execution systems.

  • Vote: I like it
  • -13
  • Vote: I do not like it