2017Unpublished venueRequires access

Concurrent Programming

Jiacun Wang

Open publisher page 12 citations

Abstract

This chapter discusses implementation side of real-time embedded software, with the focus being placed on the mechanisms of intertask synchronization and communication. The chapter gives the POSIX threads, or Pthreads as an example to show the issues and their solutions in concurrent programming. The chapter explains the concepts of race conditions and critical sections and then introduces the various solutions to process synchronization. The mutex, condition variable, and semaphore approaches are only suitable for synchronization between threads of a single process. One way to synchronize data sharing between processes is to use named semaphores. The chapter further introduces widely used real-time signals and timer, and discusses how to use the kernel facilities to implement periodic tasks. A periodic task can be implemented with a process or a thread, depending on the computation complexity of the task.

About this research paper

What this paper is about

This chapter discusses implementation side of real-time embedded software, with the focus being placed on the mechanisms of intertask synchronization and communication. The chapter gives the POSIX threads, or Pthreads as an example to show the issues and their solutions in concurrent programming. The chapter explains the concepts of race conditions and critical sections and then introduces the various solutions to process synchronization. The mutex, condition variable, and semaphore approaches are only suitable for synchronization between threads of a single process. One way to synchronize data sharing between processes is to use named semaphores. The chapter further introduces widely used real-time signals and timer, and discusses how to use the kernel facilities to implement periodic tasks. A periodic task can be implemented with a process or a thread, depending on the computation complexity of the task.

Why it matters

OpenAlex reports 12 citations for this work. Citation counts describe recorded attention and do not establish research quality.

Key contribution

A contribution statement is not available in the OpenAlex record.

Method / approach

Method details are not available in the OpenAlex metadata.

Main findings

Findings are not separately available in the OpenAlex metadata.

Limitations

Limitations are not available in the OpenAlex metadata.

Applications

Application details are not available in the OpenAlex metadata.

Available abstract

This chapter discusses implementation side of real-time embedded software, with the focus being placed on the mechanisms of intertask synchronization and communication. The chapter gives the POSIX threads, or Pthreads as an example to show the issues and their solutions in concurrent programming. The chapter explains the concepts of race conditions and critical sections and then introduces the various solutions to process synchronization. The mutex, condition variable, and semaphore approaches are only suitable for synchronization between threads of a single process. One way to synchronize data sharing between processes is to use named semaphores. The chapter further introduces widely used real-time signals and timer, and discusses how to use the kernel facilities to implement periodic tasks. A periodic task can be implemented with a process or a thread, depending on the computation complexity of the task.

Key concepts: Semaphore, POSIX Threads, Computer science, Thread (computing), POSIX, Synchronization (alternating current), Atomicity, Concurrent computing

Related papers

Back to paper searchBrowse research topicsOriginal source
Concurrent Programming — Research Paper | ScholarLens