Created
October 4, 2012 15:32
-
-
Save kellymclaughlin/3834437 to your computer and use it in GitHub Desktop.
Change # of schedulers online
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% 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