Libraryless. Click here for Pure Java version (85L/1K).
1 | static new ThreadLocal<Int> coresToUse_tl; |
2 | |
3 | static int coresToUse() { |
4 | try Int i = coresToUse_tl!; |
5 | ret max(1, numberOfCores()-1); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, qgvkllrfbgaw, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008558 |
Snippet name: | coresToUse - how many cores to use in parallel execution [overridable] |
Eternal ID of this version: | #1008558/5 |
Text MD5: | 49743eeb02455fb6e1e6e592c8a9c313 |
Transpilation MD5: | 1c3188349f3f6f07db71b7e66472ccda |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-31 03:27:17 |
Source code size: | 139 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 559 / 641 |
Version history: | 4 change(s) |
Referenced in: | [show references] |