Git Product home page Git Product logo

heng-core's Introduction

Heng-Core

这是用于众衡评测系统的测量核心。具有如下功能

  1. 时间限制 ( -t <ms> / -tl <ms> )
  2. 内存限制 ( -m <byte> / -ml <byte>)
  3. 进程数限制 ( -p <pid_limit> / -pidl <pid_limit> )
  4. 每秒可使用 cpu 时间限制 / 至多充分利用几个核心 ( -cpu <second> )
  5. 指定 uid 和/或 gid ( -u <uid> -g <gid> / -uid <uid> -gid <gid> )
  6. 输入输出重定向 ( -i / -o / -e / -stdin / -stdout / -stderr <path> )
  7. 指定 cwd ( -c / -cwd <path> )
  8. 指定输出结果的fd ( -f <fd> )
  9. 指定要执行文件 ( -bin <path> )
  10. 指定参数 ( -a / -args <...args> )(必须放在最后)

输出格式

struct Result
    {
        long long memory;//byte
        struct TimeUsage
        {
            long long sys;//ms
            long long usr;//ms
            long long real;//ms
        } time;
        int returnCode;
        int signal;
    };

heng-core's People

Contributors

a0nameless0man avatar handgrip 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.