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.[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.

相关文章:

  • 2022-02-21
  • 2021-08-24
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2021-11-22
  • 2021-10-14
  • 2021-11-19
猜你喜欢
  • 2021-11-25
  • 2022-02-21
  • 2022-01-26
  • 2022-12-23
  • 2021-09-21
  • 2021-10-11
  • 2021-09-20
相关资源
相似解决方案