What is thread-safe? - Definition from WhatIs.com
Part of the Programming glossary:

In computer programming, thread-safe describes a program portion or routine that can be called from multiple programming threads without unwanted interaction between the threads. (A thread is an instance of the program running on behalf of some user or process.) Thread safety is of particular importance to Java programmers, since Java is a programming language that provides built-in support for threads. By using thread-safe routines, the risk that one thread will interfere and modify data elements of another thread is eliminated by circumventing potential data race situations with coordinated access to shared data.

It is possible to ensure that a routine is thread-safe by:

  1. Making sure that concurrent threads use synchronized algorithms that cooperate with each other.
  2. Confining the address of a shared object to one thread whenever an unsynchronized algorithm is active..

This was last updated in September 2005
Posted by: Margaret Rouse

Related Terms

Definitions

  • rapid mobile app development (RMAD)

    - Rapid mobile app development (RMAD) is the use of code-free programming tools to speed the process of creating applications for mobile platforms. (WhatIs.com)

  • deprecated

    - In dictionaries, deprecated is a term used to indicate a pronunciation or usage that is acknowledged but discouraged. (WhatIs.com)

  • security by design

    - Security by design is an approach to software and hardware development that seeks to make systems as free of vulnerabilities and impervious to attack as possible through such measures as continuous... (WhatIs.com)

Glossaries

  • Programming

    - Terms related to software programming, including definitions about programming languages and words and phrases about software design, coding, testing and debugging.

  • Internet applications

    - This WhatIs.com glossary contains terms related to Internet applications, including definitions about Software as a Service (SaaS) delivery models and words and phrases about web sites, e-commerce ...

Ask a Question. Find an Answer.Powered by ITKnowledgeExchange.com

Ask An IT Question

Get answers from your peers on your most technical challenges

Ask Question

Tech TalkComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.