Language level flow

I read about threads, and many books say that Java supports threads at the language level and at a high level through the package java.util.concurrent.

What does it mean to maintain the flow at the language level?

I think Erlang is a language that supports language level flow ...

+3
source share
6 answers

So that language-level thread support means that the language provides first-class multithreading support, and not just providing second-class support through class libraries.

Java synchronized volatile. - - java.util.concurrent , , , ThreadPools, , .

Threading Java - , . Java , , . , , ( , ..).

java java.lang.Thread, , JDk 1.2, java.lang.ThreadLocal, . JDK - java.lang.Runnable. concurrency Callable Future, , .

volatile, synchronized Runnable ( JDK 1.5), , concurrency utils, .

+7

java.lang.Thread java.util.concurrent, , , , blockingQueues ..
, ( ), util.concurrent java.lang.Thread, java.lang.Thread - , java. , java.util.concurrent Thread.

0

, , (. java.lang.Thread). , synchronized. , concurrency, .. java.util.concurrent.

0

, Java, C, .

0

AFAIK synchronized volatile , Java. - (, , ..).

0

Java Language - , . Java synchronized volatile. Thread:

Threads are represented by the Thread class. The only way for a user to create a stream is to create an object of this class; each thread is associated with such an object. A thread starts when the start () method is called on the corresponding Thread object.

0
source

Source: https://habr.com/ru/post/1755924/


All Articles