I would like to know if there was a way to read different groups of
Items at different pace, by that I mean is it possible to read a first
group all the seconds and another one all the ten seconds for example.
I already tried to create a client and connect myself to my server and
then use Threading from Thread to have two threads reading 2 different
groups with different refresh using time.sleep(), but i ended up getting
a lot of errors,it seemed like I couldn't apply some of the methods of
the client object in the thread.
I then tried to use Process from multiprocessing, at first it seems to
work but when we look at the information from the server, the Process
create other clients and that's not what i want.
The last thing I can think about is understanding the pause and update
parameters from the read methods but I really don't get it, so I was
wondering if anyone already tried something like this.
Thanks for the help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, just found a way to do what I wanted, you can't actually use read in another Thread, but since you can do it in the main program, you can just create a list from the read and then use this list in your other Threads.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I would like to know if there was a way to read different groups of
Items at different pace, by that I mean is it possible to read a first
group all the seconds and another one all the ten seconds for example.
I already tried to create a client and connect myself to my server and
then use Threading from Thread to have two threads reading 2 different
groups with different refresh using time.sleep(), but i ended up getting
a lot of errors,it seemed like I couldn't apply some of the methods of
the client object in the thread.
I then tried to use Process from multiprocessing, at first it seems to
work but when we look at the information from the server, the Process
create other clients and that's not what i want.
The last thing I can think about is understanding the pause and update
parameters from the read methods but I really don't get it, so I was
wondering if anyone already tried something like this.
Thanks for the help.
Well, just found a way to do what I wanted, you can't actually use read in another Thread, but since you can do it in the main program, you can just create a list from the read and then use this list in your other Threads.