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


Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16) picture

Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16)

$189.99



Niedermaier vintage Mannequins Visual Display Props Dec. 1991 Catalogue picture

Niedermaier vintage Mannequins Visual Display Props Dec. 1991 Catalogue

$141.00



VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250 picture

VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250

$99.99



VINTAGE WESTERN ELECTRIC METER ORDNANCE A322525 WWII ERA DECEMBER 1943 picture

VINTAGE WESTERN ELECTRIC METER ORDNANCE A322525 WWII ERA DECEMBER 1943

$30.00



Adec Vintage Adjusting Dentist Doctor Medical Stool Rolling Swivel Chair picture

Adec Vintage Adjusting Dentist Doctor Medical Stool Rolling Swivel Chair

$199.99



HSS 12pcs Valve Seat & Face Cutter 45dec 30dec 20dec for Vintage Car, Bikes ,Jee picture

HSS 12pcs Valve Seat & Face Cutter 45dec 30dec 20dec for Vintage Car, Bikes ,Jee

$235.94







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