YOU WILL NEVER ALWAYS BE MOTIVATED, SO YOU MUST LEARN TO BE DISCIPLINED.🤟
Hey Mr. Dinuk, Welcome to our group Rezoth™ ❤️ [ Chat ] 👐You can learn more about this by joining our channel 🎭
Mu nm sebema dassayek kiyala hithgena anith un balan iddi tika welwkin aru wthure pawenw dakkama 🥲
Читать полностью…def reduce_CPU_usage():Читать полностью…
# Use the `taskkill` command to kill any processes that are using more than 20% of the CPU
proc = subprocess.Popen(['taskkill', '/F', '/FI', 'MEM > 15%'], stdout=subprocess.PIPE)
output, err = proc.communicate()
# Print the output of the command
print(output)
def reduce_memory_usage():
# Use the `taskkill` command to kill any processes that are using more than 50% of the RAM
proc = subprocess.Popen(['taskkill', '/F', '/FI', 'MEM > 50%'], stdout=subprocess.PIPE)
output, err = proc.communicate()
# Print the output of the command
print(output)
def main():
reduce_CPU_usage()
reduce_memory_usage()
if __name__ == "__main__":
main()