Greach 2013

[Taller] Introducción a la programación con GPars

Russel Winder  · 

Presentación

Vídeo

Transcripción

Extracto de la transcripción automática del vídeo realizada por YouTube.

message that's fine because everything is asynchronous we're just sending messages if we want to in this case we send a reply and if it's not a string or an integer we were actually going to terminate the entire program serious piece of nastiness

and I hope that I've got my punctuation correct and almost everybody in in the UK and America and will know this too because it was made famous in Fawlty Towers we only ever 12 episodes but I think kick is said some 400 nod times in that have a look of

fawlty towers it's hilarious okay so we've got a couple of classes that's all we've done so far and what can we do with it well let's instantiate one of these classes and start it so we've created an instance of an actor we've told

it run your act method be active so we create a provider and we pass a reference to this transformer and go get on with it so we've got these two actors sitting there doing nothing the synchronization is inherent in processing messages that's where

the synchronization is so they just sit there doing nothing and then we sending a message to one of them and then we send in and wait for a response so we require a reply here what's dangerous about this deadlock so just because we're using these models

doesn't mean we're immune from deadlock and live lock it means it's more controllable it's more obvious where things are going to be it's in your face we know that in actors messaging is asynchronous so here is our blocking wait this will

be a 3 through out sensible use of parallelism and in particular GTRs if you need to wait you have a blocking wait you know where the synchronization is will see this event futures when java what java already has futures we're using those sort of things

[ ... ]

Nota: se han omitido las otras 845 palabras de la transcripción completa para cumplir con las normas de «uso razonable» de YouTube.