Threads and Process

Threads and Process

University

15 Qs

quiz-placeholder

Similar activities

KUIZ DIAGNOSTIK

KUIZ DIAGNOSTIK

11th Grade - University

20 Qs

Pengantar Teknologi Informasi

Pengantar Teknologi Informasi

University

20 Qs

CLC Lesson 6 Quiz

CLC Lesson 6 Quiz

University

12 Qs

Session 08: Array

Session 08: Array

University

16 Qs

8 клас 11 балів

8 клас 11 балів

8th Grade - University

11 Qs

Paraan ng Paggamit ng Wika sa Lipunan

Paraan ng Paggamit ng Wika sa Lipunan

University

15 Qs

6E UAS LIterasi Big Data

6E UAS LIterasi Big Data

University

20 Qs

POST-TEST

POST-TEST

University

10 Qs

Threads and Process

Threads and Process

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Sáng Nguyễn

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The traditional approach of a single thread of execution per process, in which the concept of a thread is not recognized, is referred to as a __________ .

A) task

B) resource

C) single-threaded approach

D) lightweight process

A) task

B) resource

C) single-threaded approach

D) lightweight process

Answer explanation

Cách tiếp cận của xử lý đơn luồng (single thread approach):
- Cách tiếp cận truyền thông là single-threaded approach

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The idea of having a many-to-many relationship between threads and processes has been explored in the experimental operating system _________ .

A) VISTA

B) TRIX

C) SOLARIS

D) LEOPARD

A) VISTA
B) TRIX
C) SOLARIS
D) LEOPARD

Answer explanation

Ta có mối quan hệ của threads với process:

mối quan hệ 1:1: tức là một thread được chạy trên 1 process: Được chạy trên UNIX OS

  • - Mối quan hệ 1:M: 1 thread có thể di cư từ process này sang process khác, key word: migrate from

  • - Mối quan hệ M:1: một process xác định địa chỉ trông và tài nguyên và multiple threads được chạy và thực thi ngay tại process đó

  • - Mối quan hệ M:M: là sự kết hợp của 1:M và M:1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a multithreaded environment, a __________ is defined as the unit of resource allocation and a unit of protection.

thread
task
module
B) process

Answer explanation

Trong môi trường multithreaded environment, môi trường xử lý đa luồng thì process được hiểu là đơn vị phân bố tài nguyên và đơn vị bảo vệ:

unit of resource allocation, unit of protection.

Process is associated with:

  • - Virtual space hold process image: data, program, stack

  • - protected access to

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The principal disadvantage of the _________ approach is that the transfer of control from one thread to another within the same process requires a mode switch to the kernel.

A) KLT

B) LWP

C) VAX

D) ULT

A) KLT

B) LWP

C) VAX

D) ULT

Answer explanation

KLTs

Stand for Kernel level threads: Là toàn bộ công việc xử lý thread đều được hoàn thành và thực hiện ở kernel.

Disadvantageres: khi muốn chuyển quyền control từ thread này sang thread khác nó yêu cầu chuyển sang chế độ kernel

key wordL mode switch.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_________ is a good example of an OS using a combined ULT/KLT approach.

A) TRIX

B) Windows

C) LINUX

D) Solaris

D) Solaris
A) UNIX
B) macOS
C) FreeBSD

Answer explanation

Combines approaches là cách tiếp cận kết hợp KLTs và ULTs:

Tại đây tất cả các hoạt động của thread được thực hiện ngay ở userspace và việc lên lịch và động bộ scheduling sychronization được thực hiện trên API tức là kernel space.
VÍ dụ của việc sử dụng combines approach là solaris

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A _________ is a single execution path with an execution stack, processor state, and scheduling information.

A) domain

B) strand

C) thread

D) message

C) thread

A) domain

B) strand

D) message

Answer explanation

ý tưởng về việc triển khai mối quan hệ M:M của thread và process được triển khai ở TRIX OS tại đây thì thread là một đường dẫn thực thi duy nhất( single execution path) cùng với an execution stack( là ngăn thực hiện ), processor state( trạng thái của bộ xử lý) và scheduliing information (thông tin lên lịch )

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

__________ are characterized by the presence of many single-threaded processes.

A) Multiprocess applications

B) Java applications

C) Multiinstance applications

D) Multithreaded native applications

C) Multiinstance applications

B) Java applications

A) Multiprocess applications

D) Multithreaded native applications

Answer explanation

Việc có sự hiện diện của nhiều quy trình xử lý đa luồng đó gọi là multiprocess applications

keyword: many

presence

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?