The usecase is pretty simple
I have this for starting the threads
Main class
for (int x = 1; x <= numThreads; x++)
{
new ThreadComponent(x, this, creator).init();
}
Thread class
public void init()
{
thread = new Thread(doLogic);
thread.IsBackground = true;
thread.Start();
}
void doLogic()
{
while (true)
{
doLogicGetData();
}
}
Idea is that thread execution takes approx. 6 seconds I want 6 threads that start at 1 second interval
1------1------
2------2------
3------3------
4------4------
5------5------
6------6------
I saw a lot of ideas about using timers or cronjobs but i do not know how to implement them in a proper way