Sponsored By

Sign in to follow this  

How to share a global static variable between two different instances of an exe file (.NET)

Recommended Posts

I have a console .exe file. Two windows scheduled tasks are created for the same .exe file with two different command line arguments for each. These tasks run in parallel. I've a variable which should be shared b/w these two tasks i.e. if the variable is initialized in a task, the second task should use the same value without initialzing it again. I've tried implementing singleton pattern, but it didn't work.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this