Speed of synchronized

Daniel Kozak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 16 23:38:08 PDT 2016


Dne 17.10.2016 v 07:55 Christian Köstlin via Digitalmars-d-learn napsal(a):

> to run java call ./gradlew clean build
> ->
> counter.AtomicIntCounter at 25992ae3 expected: 2000000 got: 1000000 in: 22ms
> counter.AtomicLongCounter at 2539f946 expected: 2000000 got: 1000000 in: 17ms
> counter.ThreadSafe2Counter at 527d56c2 expected: 2000000 got: 1000000 in: 33ms
> counter.ThreadSafe1Counter at 6fd8b1a expected: 2000000 got: 1000000 in: 173ms
> counter.ThreadUnsafeCounter at 6bb33878 expected: 2000000 got: 562858 in: 10ms
>
I am still unable to get your java code working:
[kozak at dajinka threads]$ ./gradlew clean build
:clean
:compileJava
:processResources UP-TO-DATE
:classes
:jar
:assemble
:compileTestJava
:processTestResources UP-TO-DATE
:testClasses
:test
:check
:build

BUILD SUCCESSFUL

Total time: 3.726 secs


How I can run it?


More information about the Digitalmars-d-learn mailing list