Results 1 to 2 of 2
  1. #1
    k1lld0wn is offline Member
    Join Date
    Oct 2010
    Rep Power

    Default Executors and ThreadPoolExecutors

    I'm creating a Server-Client Open Connection Application using J2SE 1.6.
    When i accepting connection from client, i need to use threads to process the Socket i accepted.

    I'm confused in using Executors or ThreadPoolExecutors. Which one is better for an open connection application (client(s) might be stay connected for a long time period)? Or just use an ordinary Thread?

    Thanks in advance.

  2. #2
    Join Date
    Dec 2010
    Rep Power


    If i remember correctly - Executor is an interface that implements ThreadPoolExecutor. In case you are referring to a specific implementation, please provide the exact class name

Similar Threads

  1. Executors in Java
    By RadhaJayalakshmi in forum Threads and Synchronization
    Replies: 4
    Last Post: 07-21-2008, 11:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts