Skip to content

Get the set of free CPU cores on your Linux machine

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

louismerlin/free-cpus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

free-cpus

Get the set of free CPU cores on your Linux machine.

The logic is heavily inspired by AFL++'s code.

Usage

Add to Cargo.toml:

[dependencies]
free-cpus = "2.0.0"

In your rust code:

// Get the set of free CPU cores on this Linux machine
let cpus: HashMap<usize> = free_cpus::get().unwrap();

About

Get the set of free CPU cores on your Linux machine

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages