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 6115025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:02:37+00:00 2026-05-23T15:02:37+00:00

I am having a multi-threaded application that fetches different web pages. For this, I’ve

  • 0

I am having a multi-threaded application that fetches different web pages. For this, I’ve devised a parent child relationship between the threads.
The parent simply takes different urls from its page and spawns new threads. These threads keep on continuously fetching the pages until the page changes. The main thread polls every 2 minutes for the changes at the main page(and creates new threads if there is any change)

Main thread algo

while(true){
    find_new_instances(...);
    if we get any new, then
        Thread.start(...);
    Thread.sleep(120000);
}

The main thread has a String arraylist that stores the url of each new thread that it creates. I’ve heard that threads should only use immutable objects for writes. Is the used of mutable list here causing problems ?
In the child thread, activities such as page fetch and database inserts take place.

However, the application gradually increases its memory requirements and eventually deadlocks/starves into a frozen state or OutOfMemory if the no. of threads are too large.
I am at loss to try out anything. If you have experienced similar problems, kindly suggest.

  • 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-23T15:02:37+00:00Added an answer on May 23, 2026 at 3:02 pm

    I faced similar type of issue while I was developing a GUI based application.

    Reasons of crashing

    • Create a Thread Pool. use the
      available thread in you application.
      You cannot create infinite thread
      that will cause crash in your
      application
    • May be you are creating new
      objects(or string) and storing the
      data if possible use the same object
      assign the value. If the data is long
      you can store in file or database.
      rather than holding the data always
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on a multi-threaded application that would be deployed on arm and
OK, so I have a very large multi-threaded unmanaged c++ application (server) that runs
I've got a multi-user application having some critical data of the users. I am
I am getting a NullReferenceException when running my multi-threaded application, but only when I
I am writing a multi-threaded .Net application in which many callers need to concurrently
I'm working on a multi-threaded Qt application and would like to connect a signal
For my university class we are developing a multi-threaded Blackberry application which allows us
I have written a multi-threaded Java application which reads a bunch of .jar files
I'm having some problems attempting to create a multi-threaded Server. Everything works fine until
Having a heckuva time with this one, though I feel I'm missing something obvious.

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.