Hello World
import tkinter as tk
# Create a basic window
app=tk.Tk()
app.title("This is title")
app.geometry('400x300+100+300') # Initial Position of window: (width, height, x, )
# Add Label
本文整理常見(持續補充中)Synchronization、Work Defering機制,主要是將各種方法列出以避免未來使用上的混淆。
至於為什麼把timer、lock、deferring都放在一起整理的話......
因為我自己感覺概念上都是要等一下在執行接下來的函數lol
The kernel sleeping mechanism
Introduce to Process Sleeping:
You may relax a processor as soon as your process is waiting for something, and make sure a condition or something will wake it up.
The kernel scheduler manages a list of tasks to run, known as a run queue.
Polling vs Busy-wait:
a. Ref
b. Polling 與 busy-wait 概念上都是在等待並反覆地詢問一個資源是否能夠使用(通常是一個I/O裝置)
c. 差別只在於busy-wait除了等待不做任何其他事情,polling則在等待時的空檔還有做一些其他事情(即使只是sleep)