8000 GitHub - mcmdhr/Judger at 78cfd92740ae985be808e62682b87e84822f5173
[go: up one dir, main page]

Skip to content
/ Judger Public
forked from QingdaoU/Judger

Online judge sandbox based on seccomp | 需要命令行、Java JNI和php C extension集成,欢迎contribute

License

Notifications You must be signed in to change notification settings

mcmdhr/Judger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Judger Build Status

OnlineJudge 判题沙箱

##Python api 使用方法

见 demo

sudo python setup.py install
cd demo && sudo python demo.py

##C语言 api 使用方法

#include "runner.c"即可,然后传入 configresult 的结构体指针。

为什么不是ptrace

ptrace在很多OJ上都有应用,但是不可否认的是ptrace存在一个重大缺点:严重影响进程运行的性能,因为每次系统调用就要进行两次上下文切换,从子进程到父进程,然后父进程到子进程。OJ上题目很多都需要大量的输入和输出,会产生大量的系统调用,导致代码运行时间加长。

##注意

  • 如果使用了 use_nobody = True 则需要 root 权限启动。
  • Python api 请不要使用中文 Unicode。

##感谢

About

Online judge sandbox based on seccomp | 需要命令行、Java JNI和php C extension集成,欢迎contribute

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 73.2%
  • Python 26.8%
0