Git Product home page Git Product logo

pwait's People

Contributors

baruch avatar diazona avatar nickrussler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pwait's Issues

"easy_pwait" exampled in README is wrong and misleading

Relying on periodic polling is a bad idea in general for a number of reasons:

  • With time interval too short, you continuously chew up the system's resources (CPU and RAM) as process constantly wakes up and can not be paged-out even on a busy system
  • With time interval too long, there may be a significant delay before you notice the process is gone

What makes this particular example especially dangerous is that, once in a while, a new process may appear with the same PID during the 5 seconds between the checks, and your easy_pwait will never realize it.

The C-code you have does not have any of these problems -- do not devalue it :-)

Cannot compile

I cannot compile anymore.... there's no such file as sys/capability.h and linux/capability.h doesn't seem to be correct... ?

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.