[antlr-interest] multi-core usage
Loring Craymer
lgcraymer at yahoo.com
Thu Jun 12 09:57:28 PDT 2008
Language processing tends to be single threaded--token sequence matters--and ANTLR generates single thread recognizers. To take advantage of a multicore/multithread environment, the usual approach (excluding server apps) would be to use the recognizer as a task dispatcher that spawns threads according to recognized (from the token stream) semantics. There are server applications where multiple recognizers are spawned, one per connection.
--Loring
----- Original Message ----
From: "Edwards, Waverly" <Waverly.Edwards at genesys.com>
To: antlr-interest at antlr.org
Sent: Thursday, June 12, 2008 8:25:16 AM
Subject: [antlr-interest] multi-core usage
multi-core usage
I have curiosity question. Can ANTLR take advantage of multi-core processors.
The only place where I can think it would be possible would be in the lexer where
you might be able to apply one file per core to be tokenized. Has anyone tried?
Again, just curious.
W.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080612/d12c482b/attachment.html
More information about the antlr-interest
mailing list