Profile

Cover photo
Iurii Ogiienko
Attended National Technical University "KPI"
133 followers|132,225 views
AboutPostsPhotosYouTube

Stream

Iurii Ogiienko

Shared publicly  - 
1
Add a comment...
 
Мне дали конфету на дудле #googlebirthday! Счет: 151
 ·  Translate
1
Add a comment...
 
Мне дали конфету на дудле #googlebirthday! Счет: 98
 ·  Translate
1
Add a comment...

Iurii Ogiienko

Shared publicly  - 
 
GOMAXPROCS повлияет когда не хватит одного ядра, для этого запусти тест при 500-2000 одновременных соединений
 ·  Translate
1
Add a comment...

Iurii Ogiienko

Discussion  - 
 
Lock-less solution for Sleeping Barber problem.
I wrote sample solution for well known http://en.wikipedia.org/wiki/Sleeping_barber_problem without any locks or mutexes. 
Here is code http://goo.gl/1zqxp , comments appreciated.
1
Matthew Hannigan's profile photoMekio Yoo's profile photoIurii Ogiienko's profile photoJan Mercl's profile photo
9 comments
 
I have no reason to think this is not a solution, my apologies for suggesting otherwise.  I just thought I would share an interesting link on this problem, because I only became aware of Tanenbaum's error recently.
Add a comment...
Have him in circles
133 people
Ivan Shaban's profile photo
Volodymyr Ivanchenko's profile photo
Natalia Pribytkova's profile photo
Rostislav Mykhajliw's profile photo
Olga Samotoy's profile photo

Iurii Ogiienko

Shared publicly  - 
 
Happy NY!
1
Add a comment...

Iurii Ogiienko

Shared publicly  - 
 
+Volodymyr Kublytskyi в новых очочках! 
1
Add a comment...

Iurii Ogiienko

Shared publicly  - 
1
Add a comment...

Iurii Ogiienko

Discussion  - 
 
Is there any way to define FanOut pattern w/o specifying types of channels?

So it will look like this:

func Fork(baseChan <-chan Element) (<-chan Element, <-chan Element) {
  original := make(chan Element)
  clone := make(chan Element)
  go func(){
    for{
      v := <- baseChan
      original <- v
      clone <- v
    }
  }()
  return original, clone
}
1
Iurii Ogiienko's profile photoIan Liu Rodrigues's profile photoBryan Mills's profile photo
4 comments
 
You can't pass a "chan int" as a "chan interface{}" - there's no guarantee that the size of an int is the same as the size of an interface{}, so they might have different data layouts.

You can, however, pass a "chan int" as an "interface{}".
Add a comment...
People
Have him in circles
133 people
Ivan Shaban's profile photo
Volodymyr Ivanchenko's profile photo
Natalia Pribytkova's profile photo
Rostislav Mykhajliw's profile photo
Olga Samotoy's profile photo
Basic Information
Gender
Male
Education
  • National Technical University "KPI"
    Master of applied mathematics, 2006 - 2008
  • National Technical University "KPI"
    Bachelor of computer sin, 2002 - 2006
  • Kharkov patent computer college
    Junior specialist in computer since, 1998 - 2002