Coder Social home page Coder Social logo

pentalpha / process-limiter-and-process-tree-to-json Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 13 KB

Process-Limiter and Process-Tree-To-JSON. Utilities to limit the number of child processes in an application and to create a JSON formated output of the current process tree in the system. Only for Linux systems.

Makefile 0.70% C++ 40.71% C 58.59%
process-tree fork-bomb json json-format c cpp beaglebone

process-limiter-and-process-tree-to-json's Introduction

Process limiter: A small header who enables your program to control the maximum number of child processes that can be created. Any process who exceeds that maximum receives a SIGTERM.

void limitProcs(int n): n Maximum number of child processes. Does not include the process created by "limitProcs" itself, or the father process who called limitProcs.

Be aware that the "process cleaning" is linear, so if your program is creating new processes unstoppably (A.K.A. fork-bomb), limitProcs may not be capable of handling everything.

To use: include processLimiter.h

PsJSON: This small program efficiently outputs all the current processes being run on the machine in JSON format.

To make: make psjson


Anti-bomb: An executable made to easily change the system's process limits for a user.

Usage: anti-bomb [user or group] [nProcesses] Limit processes to nProcesses permanently in user or group. anti-bomb restore Restore old configuration of process limits.

To make: make anti-bomb

process-limiter-and-process-tree-to-json's People

Contributors

pentalpha avatar

Watchers

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