Lahiru
Lahiru

Reputation: 2666

find number of idling processor cores in Erlang

I need to find whether they are any idling processor cores and how much of them?

My task: I need to do a calculation in parallel and the number of processes which are running at a time need to be limited and not exceeding the existing number of processor cores.

Upvotes: 1

Views: 221

Answers (1)

fenollp
fenollp

Reputation: 2496

This line will give you the existing number of processor cores.

The rest of the code does pretty much what you intend to do anyway.

Here's the doc for that func call.

Upvotes: 3

Related Questions