Python Forum
CPU utilisation is confusing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CPU utilisation is confusing
#7
You have an infinite loop, though. If i is not equal to either random number, AND either of those numbers isn't divisible by i, your loop will never finish.
Which could explain why it's eating an entire core, without really doing anything.
Reply


Messages In This Thread
CPU utilisation is confusing - by Bidgey225 - Mar-19-2017, 08:16 PM
RE: CPU utilisation is confusing - by Ofnuts - Mar-19-2017, 09:17 PM
RE: CPU utilisation is confusing - by Bidgey225 - Mar-19-2017, 09:38 PM
RE: CPU utilisation is confusing - by Ofnuts - Mar-20-2017, 08:35 AM
RE: CPU utilisation is confusing - by nilamo - Mar-19-2017, 10:14 PM
RE: CPU utilisation is confusing - by Bidgey225 - Mar-20-2017, 06:28 AM
RE: CPU utilisation is confusing - by nilamo - Mar-20-2017, 01:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python list out top 10 Memory utilisation mg24 0 883 Nov-20-2022, 10:51 PM
Last Post: mg24
  Confusing in [for loop] topic Sherine 11 3,793 Jul-31-2021, 02:53 PM
Last Post: deanhystad
  Confusing logic Blob 4 2,540 Nov-18-2019, 03:26 AM
Last Post: Blob
  Confusing output from 2to3 about what files need change Moonwatcher 1 4,925 Dec-30-2018, 04:07 PM
Last Post: Gribouillis
  IndentationError message could be confusing to new programmers insearchofanswers87 1 2,417 May-16-2018, 05:05 PM
Last Post: Larz60+
  Confusing Math DrJu 2 3,351 Jan-18-2018, 10:47 PM
Last Post: Windspar
  Some Confusing Program Errors (Newbie stuff) WildPictus 1 2,870 Sep-03-2017, 05:00 PM
Last Post: hbknjr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020