Pelagia是基于顺序虚拟机概念开发的自动并行化工具(无锁多线程)

网友投稿 634 2022-11-02

Pelagia是基于顺序虚拟机概念开发的自动并行化工具(无锁多线程)

Pelagia是基于顺序虚拟机概念开发的自动并行化工具(无锁多线程)

Introduce

Pelagia is an automatic parallelization tool (lock-free) developed by surparallel open source based on the concept of sequential virtual machine. Pelagia is developed by ANSI C, abides by AGPL protocol, and supports multiple operating systems and languages. It supports automatic parallelization, transparent thread calling, embedded key value database, embedded multi language running environment, and provides API and documents for each language. The set concept in Boolean algebra is used to describe the operation of data. Including key, value, ordered set, index set and other types.

Principle

Pelagia slices the attribute according to the ECS program. According to the property read and write different automatically allocated to different threads to improve the efficiency.Pelagia is very impressed with writing. All the table written from the order must be allow by "plg_MngAddTable".To use the following methods in order, you need to set write permissions. Otherwise, the write will fail.

plg_JobSetplg_JobMultiSetplg_JobDelplg_JobSetIfNoExitplg_JobTableClearplg_JobRename

plg_JobSAddplg_JobSMoveplg_JobSPopplg_JobSDelplg_JobSUionStoreplg_JobSInterStoreplg_JobSDiffStore

Related resources

Pelagia website: https://surparallel.org Manual: pelagia c api manual 0.33(html) pelagia c api manual 0.33(pdf) pelagia lua api manual 0.33(html) pelagia lua api manual 0.33(pdf)

Example

You can find the relevant sample code in psimple.c, profesa.c under the source code.

Environmental installation

Install on Linux system

Linux&Mac installation is very simple, just download the source package and decompress and compile it on the terminal. This article uses version 0.1 for installation:

git clone https://github.com/surparallel/pelagia.gitcd pelagia/srcmake linux

Install on Mac OS X

git clone https://github.com/surparallel/pelagia.gitcd pelagia/srcmake macosx

Install on window system

After decompression, enter the msvcs directory and open pelagia.sln for compilation.

Using Pelagia as a Control and Dao framework on the client

An example of unity can be found here https://github.com/surparallel/unity_example_of_pelagia

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Problem L. Omar’s Bug【分类讨论】
下一篇:Mybatis的resultMap返回map问题
相关文章

 发表评论

暂时没有评论,来抢沙发吧~