Please review Task Manager

A

ab

Hello everyone,

I've searched for a simple threaded task manager which does the
following things:
- Can handle a list of tasks
- Executes them one after one
- Supports an interval so a task is not executed again before X
seconds
- Supports tasks which should be run only once
- Tasks can be added and removed during the runtime

I didn't find any existing solutions, but to be honest this is the
first time in need to work with threads in .Net / C#.

What I basically did now is creating a class which has a list of task
objects and executes them one by one. Before executing, it checks if
the task should already be executed again, if not it skips to the next
one.

Since I don't have any experience with .Net threads, I wonder if the
following solution is OK or if I will run into major problems after
some time. Of course I tested the Class in my application and it looks
like "its's working".

You can view the code at http://pastebin.com/m4b5792a1 I'm open for
any type of feedback!

Thanks in advance,

Arne
 
P

Peter

Peter Duniho wrote:

[cut heaps of fantastic comments, considerations, and code examples]

Holy cow! Can I just send my next project description to you? :)
 
P

Peter

Peter Duniho wrote:

[cut heaps of fantastic comments, considerations, and code examples]

Holy cow! Can I just send my next project description to you? :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top