Giter Club home page Giter Club logo

hhoj's Introduction

黄淮OJ

数据库:Mysql

运行环境:Linux

框架:SSM

消息队列:redis

虚拟化技术:docker

简单介绍:项目由Web系统+判题机组成,两系统通过消息队列进行通信..

一、判题机1.0介绍:

目前的判题机使用docker作为编译与运行环境,Redis作为消息队列。

判题机工作流程:

1.主线程不停的轮询消息队列,从中获取待判的消息,消息被序列化为JSON格式,以字符串的形式存放在Redis消息队列。消息格式如下:

{

"submitId":id,
"code":"代码",
"language":"代码语言",
"memaryLimit":内存限制,
"timeLimit":时间限制,
"points":[
	{"input":"输入示例1","output":"输出示例1"},
	{"input":"输入示例2","output":"输出示例2"}
	]

}

2. 创建判题任务并交由线程池执行

3.将执行后的结果发送至结果消息队列,一次判题任务结束

hhoj's People

Contributors

zhuchengzhong avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.