Results 1 to 3 of 3
  1. #1
    seongchog is offline Member
    Join Date
    Sep 2011
    Posts
    11
    Rep Power
    0

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,386
    Blog Entries
    7
    Rep Power
    20

    Default Re: how to use Executors?

    Do you mean Executor (singular and an interface) or Executors (plural and a concete factory class)? Both are well explained in the API documentation.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    javin.paul is offline Member
    Join Date
    Oct 2011
    Posts
    35
    Rep Power
    0

    Default Re: how to use Executors?

    Executors is used to create thread pool like below is a pool of two threads, do a google and you will get lot of examples.
    ExecutorService es = Executors.newFixedThreadPool(2);

Similar Threads

  1. Executors and ThreadPoolExecutors
    By k1lld0wn in forum Threads and Synchronization
    Replies: 1
    Last Post: 12-03-2010, 10:26 PM
  2. Executors in Java
    By RadhaJayalakshmi in forum Threads and Synchronization
    Replies: 4
    Last Post: 07-21-2008, 10: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
  •