L
Lucia
Hello,
I'm programming an agent. Several threads will be started in my agent.
Each thread saves the result in an object: tasks. It's something like
an array list. And I want to implement a thread control, which is able
to :
1. start or stop these threads for need
2. choose one task from one of the thread to do. ( you can think of
the tasks as messages, do a task is nothing else e.g. sending this
message to server)
Because I haven't a lot of experience of threads, I need help. Has
anyone already some code examples for study??
thanks and best regards
lucia
I'm programming an agent. Several threads will be started in my agent.
Each thread saves the result in an object: tasks. It's something like
an array list. And I want to implement a thread control, which is able
to :
1. start or stop these threads for need
2. choose one task from one of the thread to do. ( you can think of
the tasks as messages, do a task is nothing else e.g. sending this
message to server)
Because I haven't a lot of experience of threads, I need help. Has
anyone already some code examples for study??
thanks and best regards
lucia