Skip to content

Instantly share code, notes, and snippets.

@kellymclaughlin
Created October 4, 2012 15:32
Show Gist options
  • Save kellymclaughlin/3834437 to your computer and use it in GitHub Desktop.
Save kellymclaughlin/3834437 to your computer and use it in GitHub Desktop.
Change # of schedulers online
%% Get current number of online schedulers
Schedulers = erlang:system_info(schedulers_online).
%% Reduce number online to 1
erlang:system_flag(schedulers_online, 1).
%% Restore to original number of online schedulers
erlang:system_flag(schedulers_online, Schedulers).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment