Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1030546 // defaultThreadPoolExecutor

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (296L/3K).

static ThreadPoolExecutor defaultThreadPoolExecutor() {
  int poolSize = coresToUse_fixed(), queueSize = 500;
  ret new NotifyingBlockingThreadPoolExecutor(poolSize, queueSize, 15, TimeUnit.SECONDS);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030546
Snippet name: defaultThreadPoolExecutor
Eternal ID of this version: #1030546/1
Text MD5: c72a9d1bea9175e973ad880600398ef2
Transpilation MD5: 206bea32a9eb28561f1a0371c88d8f37
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-01-07 02:24:28
Source code size: 206 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 267
Referenced in: [show references]