Archive for February, 2009

Synchronuos start of many instances of the same process

Friday, February 27th, 2009

Suppose you need to start 5 instances of the same process simultaneously. There are no problems until those process does not use resources exclusively. For example they are trying to write to the same log file at the same time:

config1.GIF

In this case you will need to synchronize them in a some way. You may want to make those processes to run some sections of code in a mutually exclusive mode:

config2.GIF

 This may be naturally achieved by introducing a mutex synchronization. The sample below shows this approach on practice: mutex.zip

To see the results start several instances of this application at the same time, and the release mutex lock by pressing any key on the application’s console. You will see how other processes will react on this event:

synchronizedstart.JPG

Script.NET 1.2 is comming!

Friday, February 20th, 2009

Today I am glad to announce a new improved version of Script.NET. It got its number 1.2. It is not yet a replacement for a previous branch, but is a more treated as public community preview version to gather your feedback.

You may find a download-able package by the link below:

Download Script.NET 1.2

This version achieved a new milestone in the continuous development and improvement of scripting engine. Now, it is even more customizable, more thread safe and more stable then previous releases.

Current version is open for functionality requests and suggestions. So please go ahead and email them: piter.protsyk@gmail.com  

Please expect official release of the renewed Script.NET in May together with a new web site containing more complete help information, new tutorials and examples.

Оставьте место для чуда!

Wednesday, February 4th, 2009

Недавно я наткнулся на книгу Стивена Хокинга, “Краткая история времени”. В ней автор пытается дать своё толкование истории и происхождения Вселенной, всячески подчеркивая свой неоспоримый авторитет в этой области.

Но есть одно “но”: это принцип неопределённости, который часто упоминается в книге. А говорит, он о том, что как бы нам не хотелось, мы не можем измерить одну величину, не повлияв при этом на другую. Для науки это означает, что какие бы точные методы измерения не использовались, какие бы совершенные теории не изобрел бы человеческий гений - всегда найдется место для “неопределенности”, всегда найдётся место для “чуда”.

Так вот, в этот кризисный для нас и для всего мира время, вероятно, не стоит гнаться за несбыточными надеждами, может просто стоит оставить место для чуда?

Please, leave a place for a miracle!

I recently came across a book by Stephen Hawking, “A Brief History of Time”. The author tries to give his interpretation of the history and origin of the universe there, often stressing his indisputable authority in this field. But its ok, he is really great scientist.

But there is one “but”: it is the principle of uncertainty, which is often mentioned in the book. And it says that no matter how hard we’d want we will be unable to measure one value, while not predictably affecting the other. For a natural science, this means that whatever exact measurement methods are not used, whatever the theory is not invented by a genius of a man - there will always be a place for the “uncertainty”, there will always be a place for “miracle.”

So, in this crisis time for all of us in the world we’d probably should not pursue delusive hopes, but may be simply leave a place for a miracle?