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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:01:13+00:00 2026-05-23T06:01:13+00:00

I am trying to learn or put together the bits and pieces that I

  • 0

I am trying to learn or put together the bits and pieces that I have been picking up so I got a couple of questions:

  1. I have a thread that sleeps for 5 hours after it performs its operations, now when that thread sleeps does the application go into an idle state? Does it automatically yield ie or do I have to call thread.Yield()?

  2. If you have a wpf application that waits for user input, does it too go into an idle state while it waits? Lets assume that the application might have to wait an entire day before it gets told to do something? What does it do while waiting does it keep consuming resources or simply, automatically, go into an idle state where it waits?

  3. Now going from question 2 if the wpf is a self host for a wcf service, what does the wpf do after it has started hosting, does it enter an idle state? So from question 2 the button would be used to reset the service, what would the wpf application do(before you pressed the button, you don’t have to repeat the answer for 2 if its the same)?

Thanks all,
P.S.
Sorry if why question seem real exam like :-S they are not. Just finished exams and that’s all I see :-S

  • 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-23T06:01:14+00:00Added an answer on May 23, 2026 at 6:01 am
    1. If you call Thread.Sleep(), the thread won’t use any CPU resources while it’s sleeping. The thread will go into an idle state, the application may consist of multiple threads.

    2. The operating system keeps it “asleep” until there is a message ready for it. There is no impact on the CPU while a UI application is running (unless you are using timers on the UI thread or something), however of course it will keep using memory.

    3. The service is hosted from another thread. That thread will not use CPU resources until a message arrives for it. This thread is not visible for you from C# – but if you open the task manager (Ctrl-Alt-Del) while your application is running, you can see the amount of threads running for your application (you might have to add columns to it from the task manager menu bar). Another interesting column is “CPU time” which tells you the impact of your application on the CPU.

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

Sidebar

Related Questions

I have been trying to learn horizontal lists in html. I have the following
Right now I'm trying to put together something really simple, learn from it, and
I have been trying to learn from reading tutorials online and stuff but I
I am trying to learn assembly from scratch. I have been reading up quite
Trying to learn about php's arrays today. I have a set of arrays like
Im trying to learn a bit about c++ and have run in to some
I'm trying to learn more about WPF. I ran through an online tutorial that
I've been trying to learn about metaclasses in Python. I get the main idea,
I'm trying to learn Prototype, so I threw together a simple Log-in page, with
I am trying to learn how to use Cascadding Style Sheets. I have 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.