INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Threading or multiple instances

Threading or multiple instances

(OP)
Hello,

I need to develop a solution for handling random events: random complexity (size of data to be processed) and
random time.

I prospect two solutions:
- A monitoring system wich will initate different threads for each event
or
- A monitoring system wich will launch different instances of exe-s dedicated to that data processing.

Wich one of this would you reccomend? Or maybe another one?


Thank you,
Daniel.

RE: Threading or multiple instances

Hi Daniel,

Sounds similar to what I once needed:
A project automation solution: files of varying number, size and type would come in and would need to be automatically processed in the background.
I solved this with hangfire: http://hangfire.io/
It has a job queue and recurring jobs.
So you could use a folder monitor(?) solution, that will put whatever lands there in the hangfire job queue and let hf handle the rest.

MakeItSo

"Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family." (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.

RE: Threading or multiple instances

(OP)
Wow, great solution. I will Make It So :)))

Folder monitoring is in the background indeed.
I can't afford, however, 5000 USD but I hope the free version works fine.

Thank you,
Daniel

RE: Threading or multiple instances

The free version should absolutely suffice.
The software is relatively easy to use, you find a number of examples - and if all fails, you can post here. smile

"Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family." (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.

RE: Threading or multiple instances

I would probably opt for spawing a thread.. either a background worker or a new thread.. My feeling is a background worker may be better than going for the raw thread class as synchronizing the results of its work is much easier, especially if there is a chance that you may have more than one running at a time.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close