The Communicating Thread for Java (CTJ) is part of the Communicating Thread (CT) Library developed by Control Engineering group, University of Twente, the Netherlands. One can write software based on Communicating Sequential Process (CSP) concept on PC with this library. Before, CSP programming can only implemented through Occam programming with transputer as its target. Inside the CT Library, the hardware independent and hardware dependent concept are proposed. As examples for the hardware independent part of the program are arithmetic operation, logic operation, etc. Examples from the hardware dependent are to read data from ADC, to send data via a fieldbus, etc. This concept enables one to move one system to another by changing the hardware dependent part of the program. The goal of this paper is to introduce the CT Library for embedded system and distributed control system application. The experiments done in this paper is emphasized on the hardware dependent part, since it relates to embedded system and distributed control system application.