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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:08:36+00:00 2026-06-14T09:08:36+00:00

I have a a few threads that needs to run constantly or be locked

  • 0

I have a a few threads that needs to run constantly or be locked at my disposal. When I lock the phone or swap applications the thread seems to halt until the application is back in focus.

I have a class Worker that is a sub class of NSThread. There is a method called start which is called by the firstViewController that creates the Worker object.

//method start
[self performSelectorInBackground:@selector(run) withObject:self];

What do I need to do to make my thread run all the time, rather than only running while in focus?

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-14T09:08:37+00:00Added an answer on June 14, 2026 at 9:08 am

    When your app enters the background, all threads as suspended – unless you’ve configured your application to use multi-tasking, and your work is being done using the multi-tasking methods. This is detailed at Apple developer.

    In short, you basically can’t have a thread running constantly in the background on iOS if you want to be accepted in the App store, unless you’re a navigation or VOIP application. You can have a thread continue to run for around 10 minutes after you enter the background, but that’s it.

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

Sidebar

Related Questions

I have a program that runs in a few threads. The main thread shares
I have few threads that performs an actvity in parallel. I would have to
I have a tab layout app that needs to download a few files right
Background : I have a few different threads which each need to write to
I'm working on an SDK for Android with a few threads involve. I have
I have few text fields like SSN , phone number and email id. I
I have one test that needs to work more then 1 minute (VS2008, MSTest,
We have several apps that run on a Windows 2003/2008 server. Some of these
Currently I have a background thread that does some periodic heavy data management. Because
I have a list/queue of 200 commands that I need to run in a

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.