Páginas

Mostrando las entradas con la etiqueta laboratorio. Mostrar todas las entradas
Mostrando las entradas con la etiqueta laboratorio. Mostrar todas las entradas

miércoles, 29 de febrero de 2012

jueves, 16 de febrero de 2012

[DISTRIBUIDOS Y PARALELOS] Third week

This week I was reading more about threads, this time about synchronization:

I was triyng to use mutex (locks) in some codes using threading.Lock from python.

Also there is threading.Semaphore() and threading.Condition()

I updated the page I did last week with this information.

Link to the page

This week I'll nominate to Cecilia for her mergesort python program using both secuential and parallel ways.
I'll also nominate Gabriela because I found her post very useful

jueves, 9 de febrero de 2012

[DISTRIBUIDOS Y PARALELOS] Second week

This week I tried to modify the code of mergesort in python to make it work with threads, but I found it a little hard.

At the first try, the results were:


One instruction was executed as many times as I had defined threads.

In this link I explain how to work with threads an two diferent ways of execution of them.

jueves, 2 de febrero de 2012

[DISTRIBUIDOS Y PARALELOS] Fisrt week

In this first week I tried to execute mergesort algorithm in python.

So I looked for information about the algorithm in some pages and I found this:


First I tried some implementations where I divided a list in pairs and comparing the elements in each list generated from the original list.

I failed. Becouse I only got a sublist order, but not the full list.

So I looked again for more information and then I made this code:


This code works fine, and I tried to implement threads, but it's a little hard.