{"title":"针对有界缓冲区的生产者/消费者问题,用常规Petri网语言进行集差运算","authors":"Vitalii Statkevych","doi":"10.20535/srit.2308-8893.2021.2.08","DOIUrl":null,"url":null,"abstract":"We consider a Petri net for the producer/consumer problem (one of the classical synchronization problems) with the bounded buffer of size n and the regular formal languages Ln, generated by the net. The objective of this paper is to obtain a regular expression for the set difference of languages Ln \\ Lm, n > m. For this purpose, we give the finite automaton which accepts the set difference of mentioned languages, and then we use the state elimination method to obtain the regular expression in the recursive form. The main result is illustrated by the examples. In an appendix, we consider the problem with two producers and two consumers with the bounded buffer of size 1. We give a reachability graph and propose the method for obtaining the regular expression. The explicit formulas are given for the problem with two producers and one consumer and also for the problem with one producer and two consumers.","PeriodicalId":330635,"journal":{"name":"System research and information technologies","volume":"20 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-09-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Set difference operation for regular Petri net languages for the producer/consumer problem with the bounded buffer\",\"authors\":\"Vitalii Statkevych\",\"doi\":\"10.20535/srit.2308-8893.2021.2.08\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"We consider a Petri net for the producer/consumer problem (one of the classical synchronization problems) with the bounded buffer of size n and the regular formal languages Ln, generated by the net. The objective of this paper is to obtain a regular expression for the set difference of languages Ln \\\\ Lm, n > m. For this purpose, we give the finite automaton which accepts the set difference of mentioned languages, and then we use the state elimination method to obtain the regular expression in the recursive form. The main result is illustrated by the examples. In an appendix, we consider the problem with two producers and two consumers with the bounded buffer of size 1. We give a reachability graph and propose the method for obtaining the regular expression. The explicit formulas are given for the problem with two producers and one consumer and also for the problem with one producer and two consumers.\",\"PeriodicalId\":330635,\"journal\":{\"name\":\"System research and information technologies\",\"volume\":\"20 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-09-14\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"System research and information technologies\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.20535/srit.2308-8893.2021.2.08\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"System research and information technologies","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.20535/srit.2308-8893.2021.2.08","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
摘要
我们考虑了生产者/消费者问题(经典同步问题之一)的Petri网,该网生成的有界缓冲区大小为n,规则形式语言为Ln。本文的目的是求出语言Ln \ Lm, n > m的集差的正则表达式。为此,我们给出了接受上述语言集差的有限自动机,然后用状态消去法求出递归形式的正则表达式。通过算例说明了主要结果。在附录中,我们考虑有两个生产者和两个消费者的问题,缓冲区大小为1。给出了可达性图,并给出了正则表达式的求取方法。给出了两个生产者和一个消费者问题以及一个生产者和两个消费者问题的显式公式。
Set difference operation for regular Petri net languages for the producer/consumer problem with the bounded buffer
We consider a Petri net for the producer/consumer problem (one of the classical synchronization problems) with the bounded buffer of size n and the regular formal languages Ln, generated by the net. The objective of this paper is to obtain a regular expression for the set difference of languages Ln \ Lm, n > m. For this purpose, we give the finite automaton which accepts the set difference of mentioned languages, and then we use the state elimination method to obtain the regular expression in the recursive form. The main result is illustrated by the examples. In an appendix, we consider the problem with two producers and two consumers with the bounded buffer of size 1. We give a reachability graph and propose the method for obtaining the regular expression. The explicit formulas are given for the problem with two producers and one consumer and also for the problem with one producer and two consumers.