Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6067849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:39:10+00:00 2026-05-23T09:39:10+00:00

I just want to insert a batch of tasks into it, and do not

  • 0

I just want to insert a batch of tasks into it, and do not want to lost any one.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:39:11+00:00Added an answer on May 23, 2026 at 9:39 am

    @virsir,

    You’d asked specifically about creating an instance ThreadPoolExecutor. But I’m wondering whether it would be okay to have any class that implements the ExecutorService interface. Since ThreadPoolExecutor implements ExecutorService, this isn’t much of a leap.

    The java.util.concurrent.Executors class provides some useful functions for creating thread pools that handle some common situations.

    I’ve recently used Executors.newFixedThreadPool() in a project to create several different thread pools. It returns an object that implements ExecutorService. I had no trouble submitting tens of thousands of Runnable instances to a pool of 10 threads, and it worked quite smoothly.

    Per the Java 5 docs, this method:

    Creates a thread pool that reuses a
    fixed set of threads operating off a
    shared unbounded queue. If any thread
    terminates due to a failure during
    execution prior to shutdown, a new one
    will take its place if needed to
    execute subsequent tasks.

    Since the method is said to create an “unbounded queue”, there should be no artificial limits on the number of tasks one can submit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just want to clarify one thing. This is not a question on which
I just want to make SELECT/INSERT into a remote database, I think it should
Use case: I've just entered insert mode, and typed some text. Now I want
I just want a quick way (and preferably not using a while loop)of createing
I don't want to use CSS, I just want to plainly insert a tick
I want to insert a value from the database into my dropdown menu in
Just want to insert a word or text at the beginning of range of
I hope I'm not being too long winded in this question, I just want
I just want to add UITableView to the one page of my multi-page UIScrollView.
I just want understand the meaning of update lost which is solved by transaction.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.