Search found 2 matches

by jamalayka
2020/09/16 11:03:45
Forum: CentOS 8 - General Support
Topic: Centos 8 and Python threading
Replies: 2
Views: 198

Re: Centos 8 and Python threading

Hi Danial, Good idea, but I am not looking for alternative or a workaround. I am in a class and threading and concurrent futures is the subject. These are not working on Centos as they should be as I mentioned in my post. I have now moved on, need to catch up with the class :-). I just need an expla...
by jamalayka
2020/09/15 11:22:53
Forum: CentOS 8 - General Support
Topic: Centos 8 and Python threading
Replies: 2
Views: 198

Centos 8 and Python threading

Hello: I am trying to run the following python code: import concurrent.futures import logging import time class FakeDatabase: def __init__(self): self.value = 0 def update(self, name): logging.info("Thread %s: starting update", name) local_copy = self.value local_copy += 1 time.sleep(0.1) self.value...

Go to advanced search