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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:05:15+00:00 2026-06-16T15:05:15+00:00

I need to pass a signal from a .NET app to a Java app.

  • 0

I need to pass a signal from a .NET app to a Java app. No data is required, the signal itself is enough.

The most simple way that comes to my mind is by using a named synchronization object like this:

  1. The .NET app creates a certain named synchronization object A.
  2. The Java app creates a certain named synchronization object A – the name is the same as in (1).
  3. The Java app has a thread waiting on the object to become signaled.
  4. The .NET app signals the object.
  5. The Java app thread awakens and acts upon the signal reception.

At least, this how I would do it if I knew how to create a named synchronization object in Java.

But looks like Java does not have any, which I find hard to believe. Does it mean that only Windows has named synchronization objects?

So, my question is this – how do I pass a simple signal (no data) from a non Java app to a Java app on Windows? Both processes run on the same host.

EDIT

Motivation – I want to signal to our headless Java process to terminate itself gracefully as soon as it can do so.

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

    For God’s sake, I just want a single 1 bit signal from a C++/C# process to a Java process and there is no simple way to do it. I can’t believe it.

    Forget about it, I’ll just use the file system. The C++/C# code is going to create an empty file at a well known location, which the Java code is going to poll every second.

    Finito, end of story.

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

Sidebar

Related Questions

In Qt, what is the most elegant way to pass data from a QDialog
I need to pass an extra parameter :mobilejs => true from jQuery to a
I need to pass Cursor object to another activity, what is the best way
I need to pass a variable which is captured from client side via jquery
I need to pass a parameter from an EditText and when I click the
I need to pass a simple Javascript array to my wcf ajax webservice: var
I need to pass audio data into a 3rd party system as a 16bit
I need to pass data to a variable in my master page each time
I need to pass an image from one view to another view.In the firstView
I need pass data (in this case just a single id) to a custom

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.