Daniel Cascado-Caballero , Fernando Diaz-del-Rio , Daniel Cagigas-Muñiz , David Orellana-Martín , Ignacio Pérez-Hurtado
{"title":"A new approach for software-simulation of membrane systems using a multi-thread programming model","authors":"Daniel Cascado-Caballero , Fernando Diaz-del-Rio , Daniel Cagigas-Muñiz , David Orellana-Martín , Ignacio Pérez-Hurtado","doi":"10.1016/j.simpat.2024.103007","DOIUrl":null,"url":null,"abstract":"<div><p>The evolution of simulation and implementation of P systems has been intense since the theoretical model of computation was created. In the field of software simulation of P systems, the proposals made so far have taken advantage mainly of the parallelism of GPUs, but not of the parallelism of existing multi-core processors. This paper proposes a new model for simulating P systems using a multi-threaded approach in a multi-core processor. This simulation approach establishes a new paradigm that is entirely in line with the philosophy of P-systems: since objects must react in parallel, asynchronously and autonomously with other objects, simulation using multiple synchronized threads completely mimics the behavior of objects within a membrane. This proposal has been implemented and tested using a simulator programmed in C#, and its correct operation has been tested for confluent and non-confluent systems. The experimental results confirm that the simulator scales well with the number of hardware threads of a multiprocessor. The obtained results show that the new model is correct and that it can be extended to other more complex types of P systems, in order to discover which are the limit of this multi-threaded approach when running it in multi-core processors.</p></div>","PeriodicalId":3,"journal":{"name":"ACS Applied Electronic Materials","volume":null,"pages":null},"PeriodicalIF":4.3000,"publicationDate":"2024-08-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S1569190X24001217/pdfft?md5=051d2b5a0e4f14a254b5d9b67b0b861e&pid=1-s2.0-S1569190X24001217-main.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACS Applied Electronic Materials","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1569190X24001217","RegionNum":3,"RegionCategory":"材料科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, ELECTRICAL & ELECTRONIC","Score":null,"Total":0}
引用次数: 0
Abstract
The evolution of simulation and implementation of P systems has been intense since the theoretical model of computation was created. In the field of software simulation of P systems, the proposals made so far have taken advantage mainly of the parallelism of GPUs, but not of the parallelism of existing multi-core processors. This paper proposes a new model for simulating P systems using a multi-threaded approach in a multi-core processor. This simulation approach establishes a new paradigm that is entirely in line with the philosophy of P-systems: since objects must react in parallel, asynchronously and autonomously with other objects, simulation using multiple synchronized threads completely mimics the behavior of objects within a membrane. This proposal has been implemented and tested using a simulator programmed in C#, and its correct operation has been tested for confluent and non-confluent systems. The experimental results confirm that the simulator scales well with the number of hardware threads of a multiprocessor. The obtained results show that the new model is correct and that it can be extended to other more complex types of P systems, in order to discover which are the limit of this multi-threaded approach when running it in multi-core processors.
自计算理论模型诞生以来,P 系统的仿真和实现就一直在不断发展。在 P 系统的软件仿真领域,迄今为止提出的建议主要利用了 GPU 的并行性,而没有利用现有多核处理器的并行性。本文提出了一种在多核处理器中使用多线程方法模拟 P 系统的新模型。这种仿真方法建立了一种完全符合 P 系统理念的新范式:由于对象必须与其他对象并行、异步和自主地做出反应,因此使用多个同步线程进行的仿真完全模拟了膜内对象的行为。我们使用 C# 编程的模拟器实现并测试了这一建议,并对其在汇合和非汇合系统中的正确运行进行了测试。实验结果证实,该模拟器能很好地与多处理器的硬件线程数保持一致。实验结果表明,新模型是正确的,而且可以扩展到其他更复杂类型的 P 系统,从而发现这种多线程方法在多核处理器中运行时的极限。