码迷,mamicode.com
首页 > 其他好文 > 详细

Thread safety

时间:2016-11-15 14:30:20      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:run   context   exec   virtual   struct   ica   programs   access   environ   

https://en.wikipedia.org/wiki/Thread_safety

Thread safety is a computer programming concept applicable in the context of multithreaded programs. A piece of code is thread-safe if it manipulates shared data structures only in a manner that guarantees safe execution by multiple threads at the same time. There are various strategies for making thread-safe data structures.[1][2]

A program may execute code in several threads simultaneously in a shared address space where each of those threads has access to virtually all of the memory of every other thread. Thread safety is a property that allows code to run in multithreaded environments by re-establishing some of the correspondences between the actual flow of control and the text of the program, by means of synchronization.

Thread safety

标签:run   context   exec   virtual   struct   ica   programs   access   environ   

原文地址:http://www.cnblogs.com/yuanjiangw/p/6065199.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!