Hybrid Model for Concurrent Execution of Lexical Analyzer on Multi-Core Systems using Dynamic Task Allocation Algorithm and Auto Keyword Detection Method

  • Vaikunta Pai T., P. S. Aithal
Keywords: Multi-core architecture, Lexical analyzer, keyword detection

Abstract

The processing power of machines will continue to accelerate massively. Modern eras of computing are driven by elevated parallel processing by the revolution of multi-core processors. This continuing trend toward parallel architectural paradigms facilitates parallel processing on a single machine and necessitates parallel programming in order to utilize the machine's enormous processing power. As a consequence, scanner generator applications will eventually need to be parallelized in order to fully leverage the throughput benefits of multi-core processors.

This article discusses the way of processing the tasks in parallel during the scanning stage of lexical analysis. This is done by recognizing tokens in different lines of the source program in parallel along with auto detection of keyword in a character stream. Tasks are allocated line-by-line to the multiple instance of the lexical analyzer program. Then, each of the instances is run in parallel to detect tokens on different cores that are not yet engaged. Theoretical and practical results indicate that the suggested methodology outperforms the sequential strategy in terms of tokenization consistently. It significantly decreases the amount of time spent on lexical analysis during the compilation process.

Published
2021-09-24
How to Cite
P. S. Aithal, V. P. T. (2021). Hybrid Model for Concurrent Execution of Lexical Analyzer on Multi-Core Systems using Dynamic Task Allocation Algorithm and Auto Keyword Detection Method. Design Engineering, 14176-14191. Retrieved from http://www.thedesignengineering.com/index.php/DE/article/view/4688
Section
Articles