Search Header Logo

Threads and Process

Authored by Sáng Nguyễn

Information Technology (IT)

University

Threads and Process
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?