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

7
LINES

< > BotCompany Repo | #1018830 // higherPriorityThread - start thread with slightly lower priority (NORM_PRIORITY+1)

JavaX fragment (include)

1  
// runnable = Runnable or String (method name)
2  
static Thread higherPriorityThread(O runnable) {
3  
  Thread thread = newThread(runnable);
4  
  thread.setPriority(Thread.NORM_PRIORITY+1); 
5  
  startThread(thread);
6  
  ret thread;
7  
}

Author comment

Began life as a copy of #1005526

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018830
Snippet name: higherPriorityThread - start thread with slightly lower priority (NORM_PRIORITY+1)
Eternal ID of this version: #1018830/1
Text MD5: 1b8d96acbd119cfc0db6ef40a7292746
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-14 00:14:36
Source code size: 226 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 343 / 374
Referenced in: [show references]