MINIMIZATION OF BITSLICED-REPRESENTATION OF 4×4 S-BOXES BASED ON TERNARY LOGIC INSTRUCTION

Y. Sovyn, V. Khoma, I. Opirskyy
{"title":"MINIMIZATION OF BITSLICED-REPRESENTATION OF 4×4 S-BOXES BASED ON TERNARY LOGIC INSTRUCTION","authors":"Y. Sovyn, V. Khoma, I. Opirskyy","doi":"10.23939/csn2023.01.103","DOIUrl":null,"url":null,"abstract":"In this paper, the author suggests a modification of the thread pool algorithm that was presented by Sean Parent at NDC London 2017. The suggested algorithm is as simple as the original implementation and demonstrates similar performance, while eliminating a potential drawback of the original implementation consisting in the fact that under certain circumstances, multiple tasks can be executed on the same thread, while other threads may be waiting for a task. The suggested idea consists in tracking the total number of tasks that are in the queues of the thread pool. When the main thread pushes a new task to one of the queues, the tasks counter is incremented. When a task is removed from the queue, the task counter is decremented. When a thread wants to get a task, it keeps checking the queues until it succeeds in getting a task from one of the queues, or until the tasks counter becomes equal to zero. When the tasks counter becomes equal to zero, the thread becomes idle until the counter becomes non-zero again. Then, one of the threads wakes up and starts checking the queues. An important point is to maintain even distribution of tasks in the queues since it has a significant impact on the performance of the algorithm. Keywords: multithreading, thread pool, task stealing.","PeriodicalId":233546,"journal":{"name":"Computer systems and network","volume":"34 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2023-12-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer systems and network","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.23939/csn2023.01.103","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

In this paper, the author suggests a modification of the thread pool algorithm that was presented by Sean Parent at NDC London 2017. The suggested algorithm is as simple as the original implementation and demonstrates similar performance, while eliminating a potential drawback of the original implementation consisting in the fact that under certain circumstances, multiple tasks can be executed on the same thread, while other threads may be waiting for a task. The suggested idea consists in tracking the total number of tasks that are in the queues of the thread pool. When the main thread pushes a new task to one of the queues, the tasks counter is incremented. When a task is removed from the queue, the task counter is decremented. When a thread wants to get a task, it keeps checking the queues until it succeeds in getting a task from one of the queues, or until the tasks counter becomes equal to zero. When the tasks counter becomes equal to zero, the thread becomes idle until the counter becomes non-zero again. Then, one of the threads wakes up and starts checking the queues. An important point is to maintain even distribution of tasks in the queues since it has a significant impact on the performance of the algorithm. Keywords: multithreading, thread pool, task stealing.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
基于三元逻辑指令的 4×4 s-box 的比特切分表示最小化
在本文中,作者建议对肖恩-帕伦特(Sean Parent)在 2017 年伦敦 NDC 大会上提出的线程池算法进行修改。所建议的算法与最初的实现一样简单,并表现出类似的性能,同时消除了最初实现的一个潜在缺点,即在某些情况下,同一线程上可以执行多个任务,而其他线程可能正在等待任务。建议的想法包括跟踪线程池队列中的任务总数。当主线程向其中一个队列推送新任务时,任务计数器就会递增。当一个任务从队列中移除时,任务计数器就会递减。当线程想要获取任务时,它会不断检查队列,直到成功从其中一个队列获取任务,或者任务计数器等于零。当任务计数器变为零时,线程将处于空闲状态,直到计数器再次变为非零。然后,其中一个线程会被唤醒并开始检查队列。重要的一点是要保持队列中任务的均匀分布,因为这对算法的性能有重大影响。关键词:多线程、线程池、任务窃取。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
DEVICE FOR CONTROLLING PARAMETERS OF ACCUMULATOR BATTERIES AND THE CORRESPONDING DIRECT CURRENT NETWORK AUTONOMOUS DECENTRALIZED COMPUTER NETWORK MONITORING SYSTEM BASED ON SOFTWARE AGENTS METHODS AND ALGORITHMS OF COMPLEXING IMAGES AND THERMAL SIGNALS MODELING THE INFLUENCE OF COMPONENTS LEAKAGE CURRENTS ON THE ACCURACY OF THE RECURRENT LADCS A COMPUTERIZED ENERGY MANAGEMENT SYSTEM FOR A SMART HOME
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1