[antlr-interest] multi-core usage
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.
----- 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
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.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the antlr-interest