You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ This is a repository of all the tutorials of [The Python Code](https://www.thepy
58
58
-[How to Implement the Vigenère Cipher in Python](https://thepythoncode.com/article/implementing-the-vigenere-cipher-in-python). ([code](ethical-hacking/implement-vigenere-cipher))
59
59
-[How to Generate Fake User Data in Python](https://thepythoncode.com/article/generate-fake-user-data-in-python). ([code](ethical-hacking/fake-user-data-generator))
60
60
-[Bluetooth Device Scanning in Python](https://thepythoncode.com/article/build-a-bluetooth-scanner-in-python). ([code](ethical-hacking/bluetooth-scanner))
61
+
-[How to Create A Fork Bomb in Python](https://thepythoncode.com/article/make-a-fork-bomb-in-python). ([code](ethical-hacking/fork-bomb))
# Wait for each process to finish before moving on.
23
+
forprocessinprocesses:
24
+
process.join()
25
+
print(f"Process {process.pid} has finished.")
26
+
27
+
# Define the main function.
28
+
defmain():
29
+
# Get the number of logical processors on the system.
30
+
num_processors=cpu_count()
31
+
# Create a large number of processes (num_processors * 200).
32
+
num_processes=num_processors*200# Adjust the number of processes to spawn as needed.
33
+
print(f"Number of logical processors: {num_processors}")
34
+
print(f"Creating {num_processes} processes.")
35
+
print("Warning: This will consume a lot of system resources, and potentially freeze your PC, make sure to adjust the number of processes and sleep seconds as needed.")
36
+
# Run an infinite loop if you want.
37
+
# while True:
38
+
# spawn_processes(num_processes)
39
+
# For demonstration purposes, run the function once and monitor the task manager.
0 commit comments