Return to search

[en] CONCURRENCY AND COORDINATION MODELS FOR EVENT-DRIVEN IN LUA / [pt] MODELOS DE CONCORRÊNCIA E COORDENAÇÃO PARA O DESENVOLVIMENTO DE APLICAÇÕES ORIENTADAS A EVENTOS EM LUA

[pt] O uso de multithreading tem se popularizado como forma de separar a execução
de tarefas concorrentes e de alcançar maior desempenho aproveitando melhor o
tempo das CPUs. No entanto, a programação com threads não é uma tarefa fácil.
O uso dos recursos compartilhados deve ser coordenado, pois o acesso concorrente
aos mesmos, na maioria dos casos, gera inconsistência na aplicação. O
modelo de desenvolvimento orientado a eventos foi apontado por alguns como
uma boa alternativa na criação de aplicações. Nesse modelo, a tarefa é realizada
por um ou mais eventos, e um loop principal fica responsável por receber
e despachar esses eventos. Investigamos, neste trabalho, um modelo em Lua que
combina orientação a eventos com preempção sem trazer de volta os problemas
de programação concorrente. Investigamos também como características da linguagem
podem ser utilizadas para prover mecanismos de coordenação flexíveis.
Essas características podem ajudar, por exemplo, a compor novos mecanismos a
partir de existentes. / [en] Multithreading has become popular as a way to organize concurrent tasks and
achieve better performance from CPUs. However, programming with threads is
not an easy task. Usage of shared resources needs to be coordinated because
concurrent access to them, in most cases, may create inconsistency in the
application. The event-driven model has been pointed as a good alternative
to multithreaded programming. In this model, a task is performed by one or
more events, where a main loop is responsible for receiving and dispatching
these events. In this work, we investigate a model to combine event-driven
and preemption in Lua without bringing back all the concurrent programming
problems. We also investigate how the language’s characteristics can be used
to provide flexible coordination mechanisms. These characteristics can aid, for
example, to create new mechanisms based on the ones already existent.

Identiferoai:union.ndltd.org:puc-rio.br/oai:MAXWELL.puc-rio.br:15131
Date08 February 2010
CreatorsBRUNO OLIVEIRA SILVESTRE
ContributorsNOEMI DE LA ROCQUE RODRIGUEZ
PublisherMAXWELL
Source SetsPUC Rio
LanguagePortuguese
Detected LanguagePortuguese
TypeTEXTO

Page generated in 0.0028 seconds