In a distributed system, the synchronization of tasks executed in different nodes is necessary. Therefore, we propose a method of synchronization of tasks in a distributed system using FlexRay. FlexRay is expected to become a dominant protocol in automotive systems. It supports a clock synchronization mechanism. We present two methods for synchronization of tasks using a clock synchronized by FlexRay. One is a synchronization method for the start point of tasks. The other is a synchronization method for specific points in the task. We implement the proposed method as an experiment.