import psutil
import time
import threading
def checkCPU():
	cpuUsage=psutil.cpu_percent(interval=1)
	print(cpuUsage)
	return cpuUsage
def useCPU(interval=.000001):
	while True:
		time.sleep(interval)
		
checkCPU()
checkThread=threading.Thread(target=checkCPU)
checkThread.start()
useCPU()
useThread=threading.Thread(target=useCPU)
useThread.start()
time.sleep(10)
useThread.join()
checkThread.join()



dbda58010a41bb4484fdb3aa99d64f716e425812
<mask token>


def checkCPU():
    cpuUsage = psutil.cpu_percent(interval=1)
    print(cpuUsage)
    return cpuUsage


<mask token>

<mask token>


def checkCPU():
    cpuUsage = psutil.cpu_percent(interval=1)
    print(cpuUsage)
    return cpuUsage


def useCPU(interval=1e-06):
    while True:
        time.sleep(interval)


checkCPU()
<mask token>
checkThread.start()
useCPU()
<mask token>
useThread.start()
time.sleep(10)
useThread.join()
checkThread.join()

<mask token>


def checkCPU():
    cpuUsage = psutil.cpu_percent(interval=1)
    print(cpuUsage)
    return cpuUsage


def useCPU(interval=1e-06):
    while True:
        time.sleep(interval)


checkCPU()
checkThread = threading.Thread(target=checkCPU)
checkThread.start()
useCPU()
useThread = threading.Thread(target=useCPU)
useThread.start()
time.sleep(10)
useThread.join()
checkThread.join()

import psutil
import time
import threading


def checkCPU():
    cpuUsage = psutil.cpu_percent(interval=1)
    print(cpuUsage)
    return cpuUsage


def useCPU(interval=1e-06):
    while True:
        time.sleep(interval)


checkCPU()
checkThread = threading.Thread(target=checkCPU)
checkThread.start()
useCPU()
useThread = threading.Thread(target=useCPU)
useThread.start()
time.sleep(10)
useThread.join()
checkThread.join()

import psutil
import time
import threading
def checkCPU():
	cpuUsage=psutil.cpu_percent(interval=1)
	print(cpuUsage)
	return cpuUsage
def useCPU(interval=.000001):
	while True:
		time.sleep(interval)
		
checkCPU()
checkThread=threading.Thread(target=checkCPU)
checkThread.start()
useCPU()
useThread=threading.Thread(target=useCPU)
useThread.start()
time.sleep(10)
useThread.join()
checkThread.join()


