首页 | 官方网站   微博 | 高级检索  
     

源程序在线评测系统技术改进
引用本文:曾棕根.源程序在线评测系统技术改进[J].计算机工程与应用,2011,47(4):68-71.
作者姓名:曾棕根
作者单位:宁波职业技术学院,电子信息工程系,浙江宁波315800
基金项目:浙江省教育厅科研项目(No.Y200907440)~~
摘    要:针对当前源程序在线评测系统设计粗糙和反馈数据不够科学的缺点,应用黑盒测试原理,采用LAMP平台,使用Linux操作系统实时读取内核数据的proc文件系统、ptrace进程跟踪和高级管道操作,研制了更完善的源程序在线评测系统:程序运行时间最小限制可达1毫秒,实现了对RSS驻留内存的限制,程序输出数据量最小限制可达1字节。在输入输出错误输出重定向、限制运行时间、限制内存用量、获取用户程序的运行时间和内存用量、程序输出数据大小限制和高级管道操作避免频繁访问磁盘等六方面进行了技术改进,为程序设计类辅助教学软件的开发提供了关键技术参考。

关 键 词:源程序在线评测  黑盒测试  proc文件系统  ptrace调试  高级管道操作
收稿时间:2010-8-12
修稿时间:2010-10-25  

Source code online judge system technological improvements
ZENG Zonggen.Source code online judge system technological improvements[J].Computer Engineering and Applications,2011,47(4):68-71.
Authors:ZENG Zonggen
Affiliation:ZENG Zonggen Department of Electronic Information Engineering,Ningbo Polytechnic,Ningbo,Zhejiang 315800,China
Abstract:To address current online judge's shortcomings of rough design and unscientific feedback data,applying black box testing principles,using LAMP platform,proc file system,ptrace debugging and advanced pipe operation,it develops a better online judge:Minimum time limit is up to 1 ms,the limitation of RSS is realized,minimum limit of the amount of output data is up to 1 byte;it solves six issues:Input and output redirection,running time limit,memory usage limit,obtaining the user program running time and memory...
Keywords:online judge  black box testing  proc file system  ptrace debugging  advanced pipe operation
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机工程与应用》浏览原始摘要信息
点击此处可从《计算机工程与应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号