Assigning to an int while simultaneously reading it in another thread is clearly a data race.
한 스레드에서 int에 할당하면서 동시에 다른 스레드에서 이 항목을 읽는 것은 명확하게 데이터 경합입니다.
Just because the count appears to have been incremented once does not mean another thread can be counted on to have reached the point at which the increment has been performed.
개수가 한 번 증가한 것으로 나타난다고 다른 스레드가 증분이 수행된 지점에 도달한 것으로 신뢰될 수 있음을 의미하는 것은 아닙니다.
For example, this means that on a 32 bit system we may read one half of the long before another thread increments the value, and the other half of it after the increment.
예를 들어, 32비트 시스템에서는 다른 스레드가 값을 증가하기 전에 긴 절반의 절반을 읽을 수 있고 나머지 절반은 증분 후에 읽을 수 있습니다.
For example if multiple threads try to write within a same file then they may corrupt the data because one of the threads can overrite data or while one thread is opening the same file at the same time another thread might be closing the same file.
예를 들어 여러 스레드가 동일한 파일 내에서 작성하려고 하면 스레드 중 하나가 데이터를 재정의할 수 있거나 한 스레드가 동일한 파일을 동시에 여는 동안 다른 스레드가 동일한 파일을 닫을 수 있으므로 데이터가 손상될 수 있습니다.
If your callback handler needs to use JNI or execute work that is not proportional to the callback, the handler should instead post an event for another thread to process.
콜백 핸들러가 JNI를 사용하거나 콜백에 맞지 않는 작업을 실행해야 하는 경우, 대신 핸들러는 다른 스레드가 처리할 이벤트를 게시해야 합니다.
If you choose to call ILBReleaseScene() at any point, you should call it only once from a single thread, and never call it while another thread is actively adding data to the scene or using the scene in another API call.
언제든지 ILBReleaseScene() 을 호출하도록 선택한 경우에는 단일 스레드에서 한 번만 호출해야 하며 다른 스레드에서 장면에 데이터를 추가하고 있거나 다른 API 호출에서 장면을 사용하고 있는 동안에는 호출하면 안 됩니다.
Using instances of CountDownLatch, which allow one or more threads to wait until a specific number of operations being executed in another thread are complete.
CountDownLatch 인스턴스 사용: 하나 이상의 스레드가 다른 스레드에서 실행되는 특정 수의 작업이 완료될 때까지 대기할 수 있도록 합니다.
Los ejemplos se utilizan solo para ayudarte a traducir la palabra o expresión en diversos contextos. Nosotros no los seleccionamos ni los validamos y pueden contener términos o ideas inapropiados. Infórmanos sobre este tipo de ejemplos para que sean editados o dejen de mostrarse. Las traduccciones potencialmente sensibles, inapropiadas o coloquiales suelen estar marcadas con rojo o con naranja.