Frogmegane Shih

@Frogmegane

Joined on Nov 1, 2018

  • 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
     Like  Bookmark
  • 本文整理常見(持續補充中)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.
     Like  Bookmark
  • Atomic atomic_read、atomic_set、atomic_add、atomic_sub WRITE_ONCE(x,val) tatic __always_inline void __write_once_size(volatile void *p, void *res, int size) { //簡單變數之Atomic由MESI協定來確保 switch (size) { case 1: *(volatile __u8 *)p = *(__u8 *)res; break;
     Like  Bookmark
  • Polling vs Busy-wait: a. Ref b. Polling 與 busy-wait 概念上都是在等待並反覆地詢問一個資源是否能夠使用(通常是一個I/O裝置) c. 差別只在於busy-wait除了等待不做任何其他事情,polling則在等待時的空檔還有做一些其他事情(即使只是sleep)
     Like  Bookmark
  • 1.Install Anaconda 2.conda create -n pose python=3.6.8 3.conda activate pose 4.install pytorch conda install pytorch==1.0.1 torchvision==0.2.2 cudatoolkit=10.0 -c pytorch 5.install caffe2 requiements pip install future ^ hypothesis ^ numpy ^ protobuf ^ six
     Like  Bookmark