ThreadPoolExecutor  pros / cons and alternatives.

Folks,
I was looking at the ThreadPoolExecutor documentation: http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ThreadPoolExecutor.html
Is ThreadPoolExecutor the most efficient dispatching system ?. Are there any other Classes in Java that can be used to accomplish a similar task, i.e executing asynchronous tasks.
Also please provide me from your experience if there are pros and cons using alternatives to threadpools.
_ddt

Thanks for your prompt response!.
We are currently using ThreadPoolExecutor to execute a bunch of asynchronous tasks, but the performance of our application degraded very SEVERELY :(.
When run through a NetBeans profiler, we see that most of the time is being spent in context switching.
The Documentation for ThreadPoolExecutor Reads:
To be useful across a wide range of contexts, this class provides many adjustable parameters and extensibility hooks. However, programmers are urged to use the more convenient Executors factory methods Executors.newCachedThreadPool() (unbounded thread pool, with automatic thread reclamation), Executors.newFixedThreadPool(int) (fixed size thread pool) and Executors.newSingleThreadExecutor() (single background thread), that preconfigure settings for the most common usage scenarios. Otherwise, use the following guide when manually configuring and tuning this class:
So is it better to use the Executor classes ?.
_ddt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • How can you get the filter off if you can't remember the password? It's"pro con" and it wont even let me check out the rates for aflight.

    How can you get the filter off if you can't remember the password? It's"pro con" and it wont even let me check out the rates for aflight.

    You can check the file prefs.js in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and remove the line(s) related to that extension (procon.password).

  • Nokia N8 Customer's experience [Pros, Cons, and Ti...

         I am a Fan and Nokia user since the release of Nokia 3310, then Nokia N37, then Nokia 5230, and now Nokia N8. when I see the history of improvements that Nokia did achieve so far I feel glad to be a Nokia fan and user, and when I look for the future I hope for more and more.
          I got my N8 almost 6 days ago; this phone is extremely powerful cellphone, it really in a level to compete with iphone. I was lucky to have mine as a second batch, and it does not have any problem so far , only it restarted once and hanged once and this was due to the over limit multi-tasking which I did in purpose to test the ability of the phone and to know experimentally the limit of the processor.
          This is my experience summary about my N8:
    Pros*:
    1- Simbian^3 is a very powerful improvement to Nokia’s history, it is really fast. The processor is working fast even with such a good operating system.
    2- Multi home screens and widgets are very powerful feature.
    3- Contacts list had improved very well.
    4- Messaging and Social networks had improved very much.
    5- Photos and Videos editor had received a very excellent improvement.
    6- Web browser is very fast in the second batch (Same speed as Opera 10).
    7- The music player was improved very much (since the N73).
    8- The GPS was improved, and connects quickly to satellite.
    9- The ability to assign different themes to each profile mode is a very cool feature.
    10- The screen visibility and quality is very good even under direct sunlight.
    11- Sound quality is very good (however if it had 2 speakers like my N73, it would be a good addition).
    12- The ability to use USB keys is very powerful, and I really enjoyed using this feature.
    13- USB charging is very good, I wish Nokia standardize it in all its new phones.
    14- HDMI connection is a very extent addition, especially when you do have a BT mouse and keyboard with the HDTV home theatre one, as if you are using your laptop.
    15- Gaming experience is very good, especially if you connect it to TV with the HDMI.
    16- OVI store offers a good pack of apps, hopefully it will expand in the near future.
    Cons*:
    1- Simbian^3 is little bit sophisticated.
    2- No customized equalizer in the music player (I don’t like the Nokia standard equalizer sets).
    3- The FM transmitter does not support the GPS voice guidance, only music player.
    4- The WiFi widget has some problems to turn off the WiFi (It is not a one step process; I wish Nokia fix it quickly).
    5- When watching a movie, the menu key does not dim or turn off, I should hide it with my hand.
    6- Only 3 home screens (I wish it has n number of customizable home screens).
    7- Keyboard is very retarded in the vertical mood (multi letter for each key is not likely to exist with touch screens, they should replace it with a full keyboard mood even with the number rows).
    8- Keyboard is very tight in the horizontal mood (Also it is confusing for the people who used to use S60^5th ed touch) [I wish if the numbers are displayed in the top as a fourth row, as my language (Arabic with English letters) has numbers as equivalent missingletters in the English alphabet, so it is painful to such back and forth between number mood and letter mood].
    9- Only the Nokia default languages are the only set of languages for the phone (I hope one day, Nokia allow customers to select their suitable language packs, as the screen is touch and Nokia will not need to customize a set of letters on numerical pads as in N73).
    10- The camera is 2x zoom only (I wish that extended zoom could be applied to boost it up to 6x with the 3 mp resolution as it was in the N73 when selecting less resolution option we get more zoom). Also there is no way to silent the camera sound nor the red light of the capture, my Samsung digital camera has it. Also no sequence picture support.
    11- The display resolution is poor; more pixels would make it better. I know that a higher resolution means a faster processor, means a much powerful battery.
    12- Battery life is not enough (One day with high usage. ie. music & GPS all the day + some Wifi).
    13- 16 gb is not enough specially with apps that can reach over 100mb in the near future.
    14- The speaker position on the back cover is not good, when the phone is on the table, the sound is blocked.
    15- The plastic covers of the top and bottom is a big disadvantage (it could break for sure if it felt on its tip), as it would be better if it was aluminum and leave the top black part only plastic for the antenna functionality, or merge the antenna in the casing body as in the iphone.
         All in all, this phone is a good step from Nokia in its learning and improving experience, I would like Nokia to learn from the costumer’s experience, and listen to their suggestions and requests for improvements. Nokia is Nokia I know, but learning from “others” will save Nokia time and money to improve and to be creative in adding new ideas instead of being just in the average area. I believe that Nokia will take back the lead in the cellphones creativity as it was with the announcement of the first N-series device 4 years ago.
    *Future Pros and Cons will be added as I get more experience with N8

    You are very lucky you don't care about email. For those of us who want to make Blackberry users jealous, the N8 experience is a humiliation.
    If you call your prejudices standards, please lower them.

  • How can you get the filter off if you can't remember the password? It's"pro con" and it wont even let me check out the rates for a flight.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/790760]</blockquote><br>
    A friend put on the filter but no one can remember the password

    You can check the file prefs.js in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and remove the line(s) related to that extension (procon.password).

  • What are the pro's and con's of the 4s?

    I am not yet an owner of the 4s iphone. So what are the pro's and con's of owning the white 32gb iphone 4s? I have had the white 32 gb iphone 3gs for two years and until I get a job I will not be buying the 4s I so need.

    Samplers do alot of things, what do you need a sampler for?
    Korgs remind me of alot of presets and alot of verb and chorus. I guess if you're posting here you already have EXS and want more sounds or more functionality and if the korg thing is true you lean more to sampling/synthesis than instrument recreation (as in you probably aren't going for VSL if the korg caught your ear). Independence looks really cool, it's quite new. Kontakt is demanding and very flexible, both include huge libraries and I know kontakt has tons of great filters, FX, modulation. It also needs a pretty strong update-which is being dealt with after a year or so.

  • Is there anything available that covers the pros/cons of a simple and network PCD migration?

    Is there anything available that covers the pros/cons of a simple and network PCD migration?  

    Hi,
    as such there is no DOC but I can share my views:
    Under Pros:
    a. PCD is an application use to migrate older versions[6.1.5, 7.x , 8.x] running on MCS to VM servers.
    b.It can be used to change the IP address or hostname on new servers without affecting existing version .
    c. Many users using MCS Hardware are not willing to migrate to latest version because of existing HW not supporting interim releases which they have to hop through to get on to the target release.
    d. Further, this requires license re-hosting as well for interim releases and major downtimes as well which can be avoided by using PCD without disturbing existing setup.
    e. Also, DRAM/HDD sizing needs to be considered while doing migration on MCS.PCD addresses these issues for migration.
    Under CONS:
    a. It needs to be ordered through Product Upgrade Tool and bootable is not downloadable from Cisco site.
    b. You could face some issues while doing migration which could be bugs but can be resolved.
    c.could face issues while discovering  cluster/doing migration but can be resolved.
    regds,
    aman

  • Pro's and Con's

    Hey Guru's
    My client has made a request to have the functionality in the portal to launch the SAP GUI from the portal. Just to be clear they are not wanting transaction IView 's just a link that will start the SAP GUI and has SSO. I'm looking for a the pro's and con's of doing this in the portal. And also any config notes you may have.
    Thanks in advance for any help.

    Yes, you can package them together.
    Now Cisco has a better way. Cisco UCS Manager provides two main advantages over past firmware provisioning:
    • The capability to group multiple firmware components together in one package
    • The capability to apply a firmware package to any compatible server in a single operation
    Cisco  UCS Manager provides an accurate, easier, faster, more flexible, and  centralized solution for managing firmware across the entire hardware  stack. Service profiles in Cisco UCS Manager abstract the physical  hardware from its software properties. Service profiles allow  administrators to associate any compatible firmware with any component  of the hardware stack. Simply download the firmware versions needed from  Cisco and then, within minutes, totally provision firmware on  components within the server, fabric interconnect, and fabric extender  based on required network, server, and storage policies per application  and operating system.
    here is the document
    http://www.cisco.com/en/US/solutions/collateral/ns340/ns517/ns224/ns944/white_paper_c11-588010_ps10279_Products_White_Paper.html

  • Pro's and cons of becoming SAP functional consultant

    Dear All,
    I am shifting towards SAP functional consulting job. I want to know the Pro's and con's of SAP functional consultant job.

    You can unload a lot of work on the technical consultant / developer and let him join the logical dots of what you're trying to design, and you get paid 50% more on top, now how's that?
    All you need to do is look business and talk business.
    Thomas
    P.S. wait, I'm a technical consultant, arrrgh...

  • Pro's and Con's Web dynpro ABAP

    Hi all,
    Could someone please give some pro's and con's (technical) with Web Dynpro for ABAP compared to Web Dynpro for Java?
    Thanks,
    Max

    hi
    good
    go through these links,hope these ll help you to give you roms idea so solve your probelm
    http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/elaborations/13-WebDynpro-Navigation+Components.pdf
    http://www.sap-press.de/download/dateien/815/sappress_web_programming_inabap2ed.pdf
    thanks
    mrutyun^

  • Pro's and Con's for Auto activation of ID Objects

    Hi
    Can anyone provide me the Pro's and Con's of having Auto activation enabled for ID Objects.
    Regards
    Osman Abdul Aziz Jabri

    Hi Osman,
    The Pros of Auto activation is all objects which do not need any manual configuration will activated. But the problem is in one transport (and in one tpz) you might have some object which needs manual configuration before activation and in this case the auto activation is failed.
    So i would suggest not to use auto activation feature for ID. Please refer the below SAP Note
    1805662 - PI Communication Channel CTS+ transport error: Enter a value for attribute
    regards,
    Harish

  • Pro's and Con's to using Copies of Standard Material Types

    Hi
    We are looking for the pro's and con's of using copies of standard SAP material types for my company.  We are a consumer goods company and looking to see if there are drawbacks and benefits when it comes time to upgrade SAP.  Also what industry standards are out there for when we change / add views to standard SAP material types.
    Regards,
    Josh

    there are no real pros and cons - just philosophy
    We're using the SAP given material types, even adjusted to our needs, already for many years from 3.1 to 6.3 release and had never any issue with hotpackages or ith release changes.
    We are using as well many own material types created by copy of SAP material types.
    the only issues I know are, that the users need some time to understand which type to use if the description appears twice.
    (Remember, it is a personal setting if keys are shown in dropdown lists, and I know many user who do not display the keys)

  • Pro's and Con's if i run multiple host firmware packages in the single chassis

    hi
    i would like to know pro's and Con's if i run multiple host firmware packages in the single chassis.
    Like if my UCS is running with firmware of 1.4.1m ( having backup of 1.3.1 and 1.1.1j) with 3 blades in one chassis
    can i assign  service-profiles having three different host firmware versions
    Server1 - host firmware 1.1.1j-- win2k8
    server2 -host firmware 1.4.1m -- RHEL 5.6 ( OS)
    server -host firmware 1.3.1 -(esxi 4.0)
    Thanks in advance ,please replay if can i go ahead with this . ASAP

    Yes, you can package them together.
    Now Cisco has a better way. Cisco UCS Manager provides two main advantages over past firmware provisioning:
    • The capability to group multiple firmware components together in one package
    • The capability to apply a firmware package to any compatible server in a single operation
    Cisco  UCS Manager provides an accurate, easier, faster, more flexible, and  centralized solution for managing firmware across the entire hardware  stack. Service profiles in Cisco UCS Manager abstract the physical  hardware from its software properties. Service profiles allow  administrators to associate any compatible firmware with any component  of the hardware stack. Simply download the firmware versions needed from  Cisco and then, within minutes, totally provision firmware on  components within the server, fabric interconnect, and fabric extender  based on required network, server, and storage policies per application  and operating system.
    here is the document
    http://www.cisco.com/en/US/solutions/collateral/ns340/ns517/ns224/ns944/white_paper_c11-588010_ps10279_Products_White_Paper.html

  • There are multiple MAC's in my house and I am considering buying Time Capsule to use as a file sharing device. Is anyone doing this? Pros/Cons?

    I have multiple MAC's in my house. I would like to create a file server environmet. I am considering using Time Capsule. Is anyone doing this? Pros/Cons?

    The Linksys should be about as fast as the Time Capsule. So you might as well connect the Time Capsule to the Linksys, disable sharing and wireless.
    Solution two is to use the TC as the router, wireless and network drive. This would save the power the Linksys needs. What is the Linksys connected to? a separate modem?

  • Pro's and Con's of moving Call Manager to VM Ware?

    I'm a bit old school, I like to have my voice components separated and on it's own hardware.
    For those of you that have made the migration or are considering it, what are the upsides and downsides?  Any unique problems encountered on VM Ware?
    Thanks,
    TB

    Considering that 10.X is allowed only on ESXi and not on baremetal, you have no option but to go new school if you have any intentions of keep working with Cisco UC.
    As for the PROs/CONs of virtualization, you can google that up, I'm sure there are hundreds of pages explaining the PROs and CONs of it.
    In my opinion, less rack space, less heat units to care about, less switch ports, and all of the ESXi features that are enabled if you have vCenter (vMotion for example)

  • Pro's and Con's of having Single SAP BI System to multiple BI system

    Hi Gurus,
    We are presently in One SAP ECC and One SAP BI landscape for two of our customers belonging to Same Parent Group.
    Now we are implementing SAP for 4 more customers belonging to Same parent group in different SAP ECC system.
    As part of BI solution,these 4 customers chosen the SAP BW as OLAP system, Now can some one explain the pro's and con's of having multiple SAP BI systems to one SAP BI system for all customers.
    Main issue will be the Master data management from all the 6 customers where there are chances that either one or two customers might have same GL account codes or Vendor Keys or Cost centers,which may effect dataloads for their respective Master Data (Attributes, texts & hierarchies) infoobjects.
    If we chose multiple SAP BI systems,is there any product with in Netweaver where we can derive KPI's from each SAP BI system separately and consolidate into one reporting Dashboard's or Scorecards. We may expect some further calculations and formulas in the KPI's from two different SAP BI systems.
    Can some one help us in providing some inputs to the above scenario?
    Thanks & best regards,
    Sudhakar.K

    Suhakar,
    I am not an expert in WAD and Visual Composer, so I will withhold comment.  Your organization may have requirements which push to BO regardless of your underlying BI implementation.
    Yes, the display of text/key can be a small sticking point.  Currently I am working with an SRM reporting scenario where we have objects such as Vendor from many different ECC systems, and the key is compounded with 0LOGSYS.  This makes the key display as ZSRCSYSKEY/ZVENDORKEY.  One workaround, is to put 0LOGSYS on the row of the report, and hide the attribute, as from the user's point of view, they do not care to see which source system the Vendor comes from.
    There would be nothing to prevent you from spawning off separate copies of the BEx query for each source system/group of users, if they have requirements for a slightly different display of data.  But the point is, you can still get a consolidated view of your key figures across all business units if it is modelled into one system, regardless of which UI is used.
    I think regardless of the path you take, there will always be challenges.  I always prefer to address the challenges via modeling, rather than at the UI layer.
    Now however, if you already had separate BW systems in place for each regional business unit, putting a new dashboard tool to pull the data together might be a simpler solution.

Maybe you are looking for

  • Required Start date in Notification

    Hi All, Maint order is assigned as a call object for a maint plan. After scheduling the maint order is generated with the basic date as per the planned date in maint plan. But the notification generated along with the order has the required start dat

  • Numerous problems with the Adobe AIR runtime for Android

    I created a app on the platform Adobe AIR for Android, which requires for AIR. The app is very popular in the Android Market, but many users complain of problems with the installation of Adobe Air runtime. For example these phones users: LGE LG-P698,

  • Regarding project  time & cost estimation

    Hi Friends, If anyone can help me out , how to prepare estimation,activity chart, Resource allocation including tcodes. if u have any ppt in this regard, I am highly obliged. Thanks in advance and will be rewarded.

  • Access Denied to windowClosing

    Hi, I have written a Java application that runs perfectly well under windows XP i then tried to compile it using javac at the command prompt on windows98 and got an access denied: windowClosing error. Any ideas as to how to fix? will provide more inf

  • Any thoughts why updating template causes menu to not work?

    Sorry for the repost, but several pages have gone by and no one has been able to offer even a glimmer of hope. I am having an issue where any changes whatsoever to the template cause the JS dropdown menu to stop working. This happens to both template