samedi 16 décembre 2017

Java concurrence

Aujourd'hui, le moindre équipement électronique - ordinateur, téléphone, tablette...  possède plusieurs cœurs, répartis sur un ou plusieurs processeurs. Si l'on souhaite en tirer le meilleur parti, il est nécessaire de se pencher sur les outils et librairies de la programmation concurrente. Dans l'article de Zenika, vous verrez des aspects de ce que sont les Threads, et comment les créer et les manipuler en Java.

dimanche 10 décembre 2017

Java 8 Concurrency Tutorial in three parts by Benjamin a Software Engineer.


  • Part 1: Threads and Executors (This part teaches concurrent programming in Java 8 with easily understood code examples)
  • Part 2: Synchronization and Locks (This part you learn how to synchronize access to mutable shared variables via the synchronized keyword, locks and semaphores)
  • Part 3: Atomic Variables and ConcurrentMap (Atomic Variables and Concurrent Maps. Both have been greatly improved with the introduction of lambda expressions and functional programming in  latest Java 8 release. All those new features are described in this last part of this serie)

lundi 13 mars 2017

How to Install Oracle Java 8 on Ubuntu 16.10 via PPA

If you want to run a program written in Java, then you will need to install JRE (Java Runtime Environment); if you want to begin developing Java programs, then you also need to install JDK (Java Development Kit) which includes JRE, no matter what operating system you use. This tutorial will be showing you how to install Oracle Java 8 on Ubuntu 16.10 via PPA. PPA (Using a Personal Package Archive (PPA), you can distribute software and updates directly to Ubuntu users. Create your source package, upload it and Launchpad will build binaries and then host them in your own apt repository.) method is easier and faster than manual installation.
sudo add-apt-repository ppa:webupd8team/java 
sudo apt-get update 
sudo apt-get install java-common oracle-java8-installer