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


MSA Altair 5X  picture

MSA Altair 5X

$750.00



New Open Box MSA Altair 4XR Multigas Detector picture

New Open Box MSA Altair 4XR Multigas Detector

$579.99



MSA Altair 5X Multi-Gas Detector picture

MSA Altair 5X Multi-Gas Detector

$850.00



MSA Galaxy GX2 Altair 4/4X Calibration Stand picture

MSA Galaxy GX2 Altair 4/4X Calibration Stand

$2000.00



MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector picture

MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector

$200.00



Altair2X Co Instrument CO Gas Detector picture

Altair2X Co Instrument CO Gas Detector

$399.99







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