Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.sys.raspberry-pi    |    Raspberry Pi computers & related hardwar    |    26,127 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 25,026 of 26,127    |
|    Lawrence D'Oliveiro to druck    |
|    Re: 1-wire behaviour on Bookworm    |
|    19 Sep 24 23:50:33    |
      From: ldo@nz.invalid              On Thu, 19 Sep 2024 10:36:16 +0100, druck wrote:              > With the Pi 3B, I could either read the sensors sequentially taking       > about 0.9s each, or using threads simultaneously in 1.0s. The Pi 4B with       > Bookworm reads the sensors sequentially a shade faster at just over       > 0.8s, but when reading simultaneously, returns 2 after 0.8s, another 2       > after 1.6s and the last two at 2.4s.              Is this Python code? Python threading cannot currently take full advantage       of multiple CPUs, owing to having to serialize all interpreter operations       through the “Global Interpreter Lock”.              This is going to be fixed from 3.13 onwards.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca