INTL 3:770/1 3:770/3   
   REPLYADDR ldo@nz.invalid   
   REPLYTO 3:770/3.0 UUCP   
   MSGID: 11a78bbb   
   REPLY: 46fbd903   
   PID: SoupGate-Win32 v1.05   
   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: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 10/0 1 90/1 103/705 105/81 106/201 124/5016 129/305 153/757   
   SEEN-BY: 153/7715 218/0 1 601 700 840 870 930 220/70 221/1 6 360 226/17   
   SEEN-BY: 226/30 100 227/114 229/110 111 114 200 206 300 317 400 426   
   SEEN-BY: 229/428 470 550 616 664 700 240/1120 266/512 267/800 282/1038   
   SEEN-BY: 291/111 292/854 301/1 113 812 310/31 320/219 322/757 335/364   
   SEEN-BY: 341/66 342/200 396/45 460/58 633/280 712/848 770/1 3 100   
   SEEN-BY: 770/330 340 772/210 220 230 5020/400 1042 5058/104 5075/35   
   PATH: 770/3 1 218/840 221/6 301/1 218/700 229/426   
      
|