Skip to content

Instantly share code, notes, and snippets.

View winocm's full-sized avatar
💭
Lonely.

Sarah Purohit winocm

💭
Lonely.
View GitHub Profile
@winocm
winocm / bad_cpu.py
Last active December 14, 2021 13:54 — forked from kbeckmann/bad_cpu.py
import time
import psutil
import multiprocessing as mp
from multiprocessing import Process
from ctypes import *
threadpin = CDLL(".\\threadpin.dll")
print(threadpin.thread_assign_to_processor)
def f(thread, duty, freq, q):