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

  • Home
  • SEARCH
  • 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 8340745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:15:46+00:00 2026-06-09T05:15:46+00:00

I have problem in multitasking. I have explained in below. I need to do

  • 0

I have problem in multitasking. I have explained in below.

  • I need to do some process for all users(for instance 200 users) in my
    web app.

  • The process is protocol request call.

  • I can able to run up to 1000 users with sleep time between thread creation.
    but I need to run without sleep time and also i need to run up to 1000 users.

  • When I try to run for 200 users I am not getting any response. Its stopped for long time. I don’t know the reason.

Please let me know If anybody have idea to resolve it
…Thanks…

  • 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-06-09T05:15:48+00:00Added an answer on June 9, 2026 at 5:15 am

    Well, It sounds to me like it’s an issue with creating too many threads too quickly.

    Try using some kind of ThreadPool to minimize the overhead of thread creation. Basically you’re going to want to have a fixed set of threads that are created, and then re-use those threads for new tasks instead of making a new thread for each task.

    If, for example, each task takes 1s to run and you get 2 tasks per second for 100 seconds, the thread-per-task method would create 200 threads to run all tasks. A pool of 100 threads would be able to execute all 200 tasks using some of those threads more than once and never leaving anything waiting/sleeping.

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

Sidebar

Related Questions

In my app I should color some images but I have a problem I
I have problem with some JS virus on all of my websites. They're on
I have problem while loading data into html select when users press or click
To solve a problem (and better my understanding of multitasking) I have written a
I have problem with building in Qt4 creator. I have some created projects and
i have a problem with multitasking. i should know how many seconds passed after
I have traced a problem in my iPhone app code to the viewDidAppear method
I have problem with passing variables through views. But, first some code // i
I have problem running my app on Android 2.3 (Gingerbread). The app has a
I have problem in some JavaScript that I am writing where the Switch statement

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.