The advantage of using such a mechanism rather than locks is thatthe t dịch - The advantage of using such a mechanism rather than locks is thatthe t Việt làm thế nào để nói

The advantage of using such a mecha

The advantage of using such a mechanism rather than locks is that
the transactional memory system—not the developer—is responsible for
240 Chapter 5 Process Synchronization
guaranteeing atomicity. Additionally, because no locks are involved, deadlock
is not possible. Furthermore, a transactional memory system can identify which
statements in atomic blocks can be executed concurrently, such as concurrent
read access to a shared variable. It is, of course, possible for a programmer
to identify these situations and use reader–writer locks, but the task becomes
increasingly difficult as the number of threads within an application grows.
Transactional memory can be implemented in either software or hardware.
Software transactional memory (STM), as the name suggests, implements
transactional memory exclusively in software—no special hardware is needed.
STM works by inserting instrumentation code inside transaction blocks. The
code is inserted by a compiler and manages each transaction by examining
where statements may run concurrently and where specific low-level locking
is required. Hardware transactional memory (HTM) uses hardware cache
hierarchies and cache coherency protocols to manage and resolve conflicts
involving shared data residing in separate processors’ caches. HTM requires no
special code instrumentation and thus has less overhead than STM. However,
HTM does require that existing cache hierarchies and cache coherency protocols
be modified to support transactional memory.
Transactional memory has existed for several years without widespread
implementation. However, the growth of multicore systems and the associated
emphasis on concurrent and parallel programming have prompted a
significant amount of research in this area on the part of both academics and
commercial software and hardware vendors.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
The advantage of using such a mechanism rather than locks is thatthe transactional memory system—not the developer—is responsible for240 Chapter 5 Process Synchronizationguaranteeing atomicity. Additionally, because no locks are involved, deadlockis not possible. Furthermore, a transactional memory system can identify whichstatements in atomic blocks can be executed concurrently, such as concurrentread access to a shared variable. It is, of course, possible for a programmerto identify these situations and use reader–writer locks, but the task becomesincreasingly difficult as the number of threads within an application grows.Transactional memory can be implemented in either software or hardware.Software transactional memory (STM), as the name suggests, implementstransactional memory exclusively in software—no special hardware is needed.STM works by inserting instrumentation code inside transaction blocks. Thecode is inserted by a compiler and manages each transaction by examiningwhere statements may run concurrently and where specific low-level lockingis required. Hardware transactional memory (HTM) uses hardware cachehierarchies and cache coherency protocols to manage and resolve conflictsinvolving shared data residing in separate processors’ caches. HTM requires nospecial code instrumentation and thus has less overhead than STM. However,HTM does require that existing cache hierarchies and cache coherency protocolsbe modified to support transactional memory.Transactional memory has existed for several years without widespreadimplementation. However, the growth of multicore systems and the associatedemphasis on concurrent and parallel programming have prompted asignificant amount of research in this area on the part of both academics andcommercial software and hardware vendors.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Ưu điểm của việc sử dụng một cơ chế như vậy chứ không phải là ổ khóa là
các hệ thống không nhớ giao dịch các nhà phát triển có trách nhiệm
240 Chương 5 Quá trình đồng bộ
đảm bảo tính nguyên tố. Ngoài ra, bởi vì không có ổ khóa là có liên quan, bế tắc
là không thể. Hơn nữa, một hệ thống bộ nhớ giao dịch có thể xác định
câu lệnh trong khối nguyên tử có thể được thực hiện đồng thời, chẳng hạn như đồng thời
truy cập đọc đến một biến được chia sẻ. Đó là, tất nhiên, có thể cho một lập trình
để xác định các tình huống và sử dụng ổ khóa đầu đọc-viết, nhưng nhiệm vụ trở nên
ngày càng khó khăn như số lượng các chủ đề trong một ứng dụng phát triển.
Bộ nhớ giao dịch có thể được thực hiện trong hai phần mềm hoặc phần cứng.
Phần mềm giao dịch bộ nhớ (STM), như tên cho thấy, thực hiện
bộ nhớ giao dịch độc quyền trong phần mềm không có phần cứng đặc biệt là cần thiết.
STM hoạt động bằng cách chèn mã số nhạc cụ bên trong khối giao dịch. Các
code được chèn vào bởi một trình biên dịch và quản lý mỗi giao dịch bằng cách kiểm tra
nơi báo cáo có thể chạy đồng thời và nơi cụ thể khóa ở mức độ thấp
là bắt buộc. Phần cứng bộ nhớ giao dịch (HTM) sử dụng bộ nhớ cache phần cứng
hệ thống phân cấp và giao thức bộ nhớ cache sự mạch lạc để quản lý và giải quyết các xung đột
liên quan đến dữ liệu chia sẻ trú tại cache xử lý riêng biệt. HTM không đòi hỏi
mã số nhạc cụ đặc biệt và do đó ít tốn kém hơn so với STM. Tuy nhiên,
HTM không yêu cầu phân cấp bộ nhớ cache hiện có và các giao thức bộ nhớ cache sự mạch lạc
được sửa đổi để hỗ trợ bộ nhớ giao dịch.
Bộ nhớ giao dịch đã tồn tại trong nhiều năm mà không phổ biến
thực hiện. Tuy nhiên, sự phát triển của hệ thống đa lõi và các liên kết
nhấn mạnh về lập trình đồng thời và song song đã khiến một
số lượng đáng kể các nghiên cứu trong lĩnh vực này trên một phần của cả hai viện nghiên cứu và
các phần mềm và phần cứng các nhà cung cấp thương mại.
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: