# Ruby API and OpenMP

**URL:** <https://www.ruby-forum.com/t/ruby-api-and-openmp/182402>\
**Category:** Ruby\
**Created:** [January 27, 2010, 3:59pm UTC](https://www.ruby-forum.com/t/ruby-api-and-openmp/182402 "2010-01-27T15:59:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lapajko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/90db22/32.png) [@lapajko](https://www.ruby-forum.com/u/lapajko)\
**Post date:** [January 27, 2010, 3:59pm UTC](https://www.ruby-forum.com/t/ruby-api-and-openmp/182402/1 "2010-01-27T15:59:31Z")

</div>

Hi everybody,

I’m writing an application, which will cooperate with ruby files. So I  
must use Ruby API (call ruby functions).

I’m using OpenMP to parallelize my program, but when I use more threads,  
program terminates with ‘segmentation fault’. I cannot use any Ruby  
function, because of this. Even when I identificate region as #critical,  
it’s ‘segfault’.

I there any way how to solve this problem?

Thank you

* * *

Viktor
