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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:01:33+00:00 2026-06-18T15:01:33+00:00

Interview Question : With in an Application, will the Activity and Service run in

  • 0

Interview Question : With in an Application, will the Activity and Service run in the same process or different processes?
My Answer was ::: In the same process.

Next Question ::: If so, how is that the Activity and Service run at the same time?
My Answer was ::: Operating System will take care of the execution. (Frankly, I didn’t knew the answer).

Can someone give an explanation of the above questions? If my answer was wrong, what is the correct answer?

  • 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-18T15:01:34+00:00Added an answer on June 18, 2026 at 3:01 pm

    There is no way to start an Activity and a Service that run in the same process (which is the default behaviour) at the same time.

    The onCreate() method of the Service runs on the main (UI) thread.

    The onCreate() method of the Activity also runs on the main (UI) thread.

    The only way to have both start at more-or-less the same time is to have the Service run in a separate process.

    You can try to launch few threads and use semaphore with barier flag.

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

Sidebar

Related Questions

In an Interview, Interviewer asked me this question that how to restrict an application
Alleged interview question and answer here . Will the following code compile (in C)?
I am ask a question in Interview that we are developing a WPF application
In an interview, Interview asked me an question : The communication between our application
I was asked this question in an interview, if an application is transmitting some
I just read an interview question that asked for the fetching complexity of a
Another interview question which was expecting a true / false answer and I wasn't
I had an interview question that asked me for my 'feedback' on a piece
Interview question: Which one will execute faster, if (flag==0) or if (0==flag) ? Why?
I have an interview question that I can't seem to figure out. Given an

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.