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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:37:29+00:00 2026-06-09T21:37:29+00:00

I am developing an app for windows phone 7.Now I have 2 threads. thread

  • 0

I am developing an app for windows phone 7.Now I have 2 threads.

thread 1

 lock(somelock)
 {
   //does some work 
   Monitor.Wait();
   //Does some work
 }

thread 2

 lock(somelock)
 {
   //does some work
   Monitor.Signal();
   //does some work;
 }

Now I want to know whether Monitor.wait() signals the other thread.

  • 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-09T21:37:31+00:00Added an answer on June 9, 2026 at 9:37 pm

    A thread that fails to get a lock is held in the ready queue. If the thread with the lock calls Wait, then it yields the lock and any threads in the ready-queue are eligible to be activated, obtaining the lock. So in a way they are activated, but they aren’t “pulsed”, if that is what you mean by signalled.

    By contrast, the thread that voluntarily called Wait is in a separate queue; it doesn’t become activated just by a thread yielding the lock; the only way that thread gets back into the ready queue is if either a thread with the lock calls Pulse/PulseAll, or the timeout occurs. Note that Pulse/PulseAll do not yield the lock – they just more a thread/threads from the sleeping queue to the ready-queue. The lock in the second example is only yielded when leaving the lock statement. As a consequence of this, note that the “does some work” after the Pulse (Signal in your example) is still done while holding an exclusive lock (in effect, you might as well move the Pulse to the end of the lock statement).

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

Sidebar

Related Questions

I'm developing a Windows Phone application . I have defined this on App.xaml: <nav:UriMapping
We're developing a Windows Phone 7 app and have a TextBlock defined like so:
I am developing a Windows Phone 7 App which is capable to work without
I have a Windows Phone application I am developing that needs to persist some
I am developing a small windows app, but have some trouble deciding whether to
Now I'm developing a Windows Phone 7 app, my app has three buttons located
I'm developing a Windows Phone app. I have the following XAML: <!--ContentPanel --> <Grid
I'm developing a Windows Phone app. I have the following C# code: private void
I'm developing a Windows Phone app. I have three pages, P1, P2 and P3.
I'm developing a Windows Phone app. I have the following XAML code: <Grid x:Name=ContentPanel

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.