asked 212k views
3 votes
A race condition ____. Select one: a. will result only if the outcome of execution does not depend on the order in which instructions are executed b. results when several threads try to access the same data concurrently c. None of the above d. results when several threads try to access and modify the same data concurrently

asked
User Pulekies
by
7.6k points

1 Answer

3 votes

Answer:

The correct answer is B. results when several threads try to access the same data concurrently

Step-by-step explanation:

A race condition happens when multithreaded code that would entrance (or access) a shared resource can do so in a way that causes unexpected results.

Also when they try to change it at the same time. You are not able to know the order in which the threads are going to attempt to access the shared data.

answered
User Szymon Jednac
by
7.8k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.