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



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


1PC 72*72mm directly Connect AC 0-20A Analog Ammeter Panel AMP Current Meter picture

1PC 72*72mm directly Connect AC 0-20A Analog Ammeter Panel AMP Current Meter

$9.39



Analog Panel AMP VOLT Current Ammeter Voltmeter Voltage Gauge 10A 50V DH-670 DC  picture

Analog Panel AMP VOLT Current Ammeter Voltmeter Voltage Gauge 10A 50V DH-670 DC

$12.99



Battery Tester DC 0-80V0-350A SOC AH VOLT AMP Capacity Tester Voltmeter Ammeter picture

Battery Tester DC 0-80V0-350A SOC AH VOLT AMP Capacity Tester Voltmeter Ammeter

$43.50



1PC Analog Ammeter Panel AMP Current Meter 100x120mm 59C2 DC 0-1500mA picture

1PC Analog Ammeter Panel AMP Current Meter 100x120mm 59C2 DC 0-1500mA

$9.29



Digital Multimeter Voltmeter XL830L AC DC Ammeter Ohmmeter Volt Meter Tester Ohm picture

Digital Multimeter Voltmeter XL830L AC DC Ammeter Ohmmeter Volt Meter Tester Ohm

$6.49



LCD Digital Multimeter Voltmeter Ammeter Ohmmeter Volt AC DC Tester Leads Meter picture

LCD Digital Multimeter Voltmeter Ammeter Ohmmeter Volt AC DC Tester Leads Meter

$10.95







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