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


OEM Battery for MacBook Pro 17

OEM Battery for MacBook Pro 17" A1309 A1297 Early 2009 Mid 2009 2010 MC226

$42.80



NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015 picture

NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015

$49.90



NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch picture

NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch

$35.90



Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013 picture

Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013

$37.90



Genuine OEM A1417 Battery For Apple Macbook Pro 15

Genuine OEM A1417 Battery For Apple Macbook Pro 15" Retina A1398 2012 2013 NEW

$38.90



A1618 NEW OEM Battery for MacBook Pro 15

A1618 NEW OEM Battery for MacBook Pro 15" Retina A1398 Mid 2015 020-00079

$49.90







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