ฝึกพูดภาษาอังกฤษด้วยเทคนิค Shadowing จากวิดีโอ: FANG Interview Question | Process vs Thread

เลือกโหมดฝึก

แต่ละโหมดจะเปิดห้องฝึกแบบเต็มจอ

47 ประโยค
หากประโยคสั้นหรือยาวเกินไป กดที่ Edit เพื่อปรับแก้
1
What's the difference between process and thread?
2
This is a common interview question.
3
Let's take a look.
4
To better answer this question, let's first understand what a program is.
5
A program is an executable file.
6
It contains the code or a set of processing instructions that is stored as a file on disk.
7
When the code in the program is loaded into memory and executed by the processor, it becomes a process.
8
An active process also includes the resources the program needs to run.
9
These resources are managed by the operating system.
10
Some examples are processor registers, program counters, stack pointers, memory pages assigned to the process for its heap and stack,
11
etc. There is an important property of a process that is worth mentioning.
12
Each process has its own memory address space.
13
One process cannot corrupt the memory space of another process.
14
This means that when one process malfunctions, other processes keep running.
15
Chrome is famous for taking advantage of this process isolation by running each tab in its own process.
16
When one tab misbehaves due to a bug or a malicious attack, other tabs are unaffected.
17
Now what is a thread?
18
A thread is the unit of execution within a process.
19
A process has at least one thread.
20
It is called the main thread.
21
It is not uncommon for a process to have many threads.
22
Each thread has its own stack.
23
Earlier we mentioned registers, program counters, and stack pointers as being part of a process.
24
It is more accurate to say that those things belong to a thread.
25
Threads within a process share a memory address space.
26
It is possible to communicate between threads using that shared memory space.
27
However, one misbehaving thread could bring down the entire process.
28
How does the operating system run a thread or process on a CPU?
29
This is handled by context switching.
30
During a context switch, one process is switched out of the CPU so another process can run.
31
The operating system stores the states of the current running process, so the process can be restored and resume execution at a later point.
32
It then restores the previously saved states of a different process and resumes execution for that process.
33
Contact switching is expensive.
34
It involves saving and loading of registers, switching out memory pages, and updating various kernel data structures.
35
Switching execution between threads also requires context switching.
36
It is generally faster to switch context between threads than between processes.
37
There are fewer states to track, and more importantly, since threads share the same memory address space,
38
there is no need to switch out virtual memory pages, which is one of the more expensive operations during a context switch.
39
Contact switching is so costly, there are other mechanisms to try to minimize it, some examples of fibers and coroutines.
40
These mechanisms trace complexity for even lower contact switching cost.
41
In general, they are cooperatively scheduled, that is, they must yield control for others to run.
42
In other words, the application itself handles task scheduling.
43
It is the responsibility of the application to make sure a long -running task is broken up by yielding periodically.
44
This concludes our discussion of process and threads.
45
If you'd like to learn more about system design, check out our books and weekly newsletter.
46
Please subscribe if you learn something new.
47
Thank you so much and we'll see you next time.

ดาวน์โหลดแอป

ทุกอย่างที่ต้องใช้เพื่อพูดได้คล่อง

AI ให้คะแนนการออกเสียงให้คะแนนทุกประโยค
ฝึก IPAเชี่ยวชาญทุกเสียง
คำศัพท์สร้างคลังคำของคุณ
เกมคำศัพท์เล่นไปเรียนไป

ช่องเดียวกัน

FOR YOU

วิดีโอแนะนำ

คำศัพท์และข้อสังเกตด้านการพูดสำหรับบทเรียนนี้

บทเรียนฝึกพูดนี้ใช้วิดีโอ “FANG Interview Question” เป็นสื่อ คำที่ถูกพูดซ้ำบ่อยที่สุด: process, thread, memory, switching, program วิดีโอนี้มี 47 ประโยค และ 565 คำ สำหรับฝึกพูดตาม ช่วงที่มีเสียงพูดยาว 3:41 ผู้พูดพูดด้วยความเร็วเป็นธรรมชาติ ประมาณ 153 คำต่อนาที ใกล้เคียงกับบทสนทนาในชีวิตประจำวัน มีเพียง 78% ของคำที่อยู่ใน 3,000 คำที่ใช้บ่อยที่สุดในภาษาอังกฤษ คำศัพท์จึงค่อนข้างยาก

คำศัพท์สำคัญในวิดีโอนี้

คำที่ควรเรียนรู้ 10 คำจากวิดีโอ พร้อมคำอ่านและความหมาย:

คำศัพท์คำอ่านความหมาย
thread คำนาม/ˈθɹɛd/ด้าย, เชือก
resource คำนาม/ɹɪˈzɔːs/ทรัพยากร
mechanism คำนาม/ˈmɛk.ə.nɪ.zəm/กลไก, เครื่อง
pointer คำนาม/ˈpɔɪn.təɹ/ไม้ชี้
trace คำนาม/tɹeɪs/การตามรอย
disk คำนาม/dɪsk/ดิสก์, จักร
execute คำกริยา/ˈɛksɪˌkjuːt/ประหาร
conclude คำกริยา/kənˈkluːd/ปิดท้าย
minimize คำกริยา/ˈmɪn.ɪˌmaɪz/ย่อ
newsletter คำนาม/ˈn(j)uzˌlɛtɚ/จดหมายข่าว

การออกเสียงที่ควรระวัง

  • เสียง “sh” และ “zh”: execution /ˌɛk.sɪˈkjuː.ʃən/, instruction /ɪnˈstɹʌkʃən/, isolation /ˌaɪsəˈleɪʃən/, malicious /məˈlɪʃəs/, malfunction /ˌmælˈfʌŋk.ʃən/
  • คำยาว — ลงเสียงหนักให้ถูกพยางค์: execution /ˌɛk.sɪˈkjuː.ʃən/, mechanism /ˈmɛk.ə.nɪ.zəm/, communicate /kəˈmjuːnɪkeɪt/, importantly /ɪmˈpɔɹ.tənt.li/, complexity /kəmˈplɛk.sɪ.ti/

เสียงที่คนไทยมักออกเสียงยาก:

  • เสียงท้ายคำ — ออกเสียงให้ครบ ไม่เปลี่ยนเป็นตัวสะกดแบบไทย: resource /ɹɪˈzɔːs/, virtual /ˈvɜɹt͡ʃuəl/, involve /ɪnˈvɑlv/, trace /tɹeɪs/, minimize /ˈmɪn.ɪˌmaɪz/
  • /v/ — ไม่ใช่ /w/ ให้ฟันบนแตะริมฝีปากล่าง: virtual /ˈvɜɹt͡ʃuəl/, involve /ɪnˈvɑlv/
  • /z/ — เสียงก้อง ไม่ใช่ /s/: resource /ɹɪˈzɔːs/, mechanism /ˈmɛk.ə.nɪ.zəm/, resume /ˈɹɛz.ə.meɪ/, minimize /ˈmɪn.ɪˌmaɪz/, newsletter /ˈn(j)uzˌlɛtɚ/

วิธีฝึกกับวิดีโอนี้

  1. ฟังวิดีโอให้จบหนึ่งรอบโดยยังไม่ต้องพูด แล้วจดคำที่ยังไม่รู้จัก
  2. เริ่มที่ความเร็ว 0.75× พูดตามทีละประโยค แล้วกลับไปใช้ความเร็วปกติเมื่อเริ่มคล่อง
  3. อัดเสียงตัวเองแล้วเทียบกับต้นฉบับ โดยสังเกตคำอย่าง thread, resource, mechanism เป็นพิเศษ

เทคนิค Shadowing คืออะไร?

Shadowing เป็นเทคนิคการเรียนรู้ภาษาที่ได้รับการรับรองทางวิทยาศาสตร์ พัฒนาขึ้นสำหรับการฝึกนักแปลมืออาชีพ วิธีการนี้เรียบง่ายแต่ทรงพลัง: คุณฟังเสียงภาษาอังกฤษจากเจ้าของภาษาและพูดตามทันที — เหมือนเงาที่ตามผู้พูดด้วยช่วงเวลาห่าง 1-2 วินาที การวิจัยแสดงว่าเทคนิคนี้ปรับปรุงความแม่นยำในการออกเสียง ทำนองเสียง จังหวะ การเชื่อมเสียง การฟังเข้าใจ และความคล่องแคล่วในการพูดได้อย่างมีนัยสำคัญ

เทคนิค shadowing: อ่านคู่มือฉบับเต็มทีละขั้นตอน →