BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-26-2013, 01:40 AM   #1
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default How many simultaneous threads can work together?

Please Login to Remove!

I have 5 (services tasks) to do simultaneously.
Now when I introduce a sixth one (Timer tasks: either scheduled once or at fixed rate), it is blocked.
Though I can run that service in an existing task, but that is synchronous: unless and untill the other subtask is finished, you can not continue with this required new service task.

I want to know whethere there is a limitation on number of simultaneous working threads?

Though I have a threaded que as well, but that is also imposing a wait..
I know of thread pool executors as well, but that is not backward compatible..

Please enlighten me with the knowledge of concurrent threads in Blackberry.

Regards
__________________
having new s for developers!!!

Last edited by abhsax1978@hotmail.com; 03-26-2013 at 01:49 AM.. Reason: Spelling
Offline  
Old 03-27-2013, 12:24 PM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: How many simultaneous threads can work together?

TimerTask uses a single scheduler thread, AFAIK.

Don't confuse threads and timer-task tasks - two different things.

There is a system-wide limit to the number of threads - and this depends on the device and the OS level. Usually it is around 20 threads.
Offline  
Old 03-27-2013, 02:01 PM   #3
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: How many simultaneous threads can work together?

One other issue that occurred to me: a long running task will keep subsequent tasks from executing. You might want to consideer using the timer to simple start a thread in your own process, then return immediately to timer. This would allow you to have overlapping timer-executed tasks.
Offline  
Old 04-08-2013, 11:05 PM   #4
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default Re: How many simultaneous threads can work together?

Hello,
I have corrected this by using a different instance of task every time. Otherwise it will not run, because the task is already finished.
Timer-Task gives me the liberty to cancel the execution, and re-initialize using the same Timer object.
I have a control-panel also to start and stop the tasks that I select.
__________________
having new s for developers!!!
Offline  
Old 04-08-2013, 11:07 PM   #5
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default Re: How many simultaneous threads can work together?

Thanks
__________________
having new s for developers!!!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: How many simultaneous threads can work together?
Thread Thread Starter Forum Replies Last Post
HOWTO: Use BlackBerry on Generic NON-BlackBerry Data Plan Mark Rejhon BlackBerry Network 95 05-20-2018 07:58 AM
Need help to reduce data usage - BB for work Cravenfan General 8300 Series Discussion - Curve 13 12-22-2009 08:07 AM
Curve only show sandglass for 10 hours ,hard reset not work:? jason.lqs General 8300 Series Discussion - Curve 6 09-29-2007 01:21 PM
Switching from current BIS enabled Pearl to BES for work JoelDF BES Admin Corner 4 09-12-2007 08:16 AM


ABB Controller Door Interlock Switch 3HAC8367-1 picture

ABB Controller Door Interlock Switch 3HAC8367-1

$149.95



new FH series Switch sensor counter programmable counting meter(FH8-6CRR4B) hl picture

new FH series Switch sensor counter programmable counting meter(FH8-6CRR4B) hl

$118.98



Omron Photoelectric Switch E3A2-XCM4 picture

Omron Photoelectric Switch E3A2-XCM4

$249.00



emergency power transfer switch non fused generator manual ge 100 amp 240 volt picture

emergency power transfer switch non fused generator manual ge 100 amp 240 volt

$199.89



The Original EZ GENERATOR TRANSFER SWITCH - UL / CSA Approved - USA Made - 12OV picture

The Original EZ GENERATOR TRANSFER SWITCH - UL / CSA Approved - USA Made - 12OV

$98.99



15A Decorator Double Rocker Switch Single Pole UL Listed picture

15A Decorator Double Rocker Switch Single Pole UL Listed

$8.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.