Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleArticle metrics
Research Article · Free to read · Published 31 October 2006

pmonpp: Pthread Monitor Preprocessor

Jinhua Guo

Journal of Computer Science, Volume 2, Issue 10, pp. 765–769 · doi.org/10.3844/jcssp.2006.765.769

6,748 accesses4,341 downloads0 citations (Crossref)Journal metrics
Cite Check for updates

Abstract

Monitors have become an exceedingly important synchronization mechanism because they are a natural generalization of the object-oriented programming. A monitor construct encapsulates private data with public methods to operate on that data. Although the Pthread library contains dozens of functions for threading and synchronization, it does not provide direct support for the monitor. Students must explicitly provide mutual exclusion around "monitor procedures" using mutex locks. However, monitor procedures by definition execute with implicit mutual exclusion. This makes it hard to teach the monitor concept in class and explain the semantic differences between monitors and semaphores. To solve this problem, we have designed and implemented a monitor preprocessor for Pthreads that provides explicit support for monitors in Pthreads.

Licence and reuse

Free to read. This article carries the publisher’s copyright, as printed on it: © 2006 Science Publications. It is free to read; ask us before reusing it.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Guo, J. (2006). pmonpp: Pthread Monitor Preprocessor. Journal of Computer Science, 2(10), 765–769. https://doi.org/10.3844/jcssp.2006.765.769

Licence
© Science Publications
Issue
Volume 2, Issue 10
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
pmonpp: Pthread Monitor PreprocessorJournal of Computer Science · Volume 2, Issue 10 · pp. 765–769 · © Science PublicationsDownload