Linux Ubuntu multithreading

3 Messages Forum Options Options
Permalink
Louis M
Linux Ubuntu multithreading
Reply Threaded More
Print post
Permalink
Hi!
I run on Linux Ubuntu and I want to create an OS independent multithreading application. I create this little test application:

class
        APPLICATION
create
        make
feature -- Initialization
        make is
                do
                        print("Is thread capable: "+{PLATFORM}.is_thread_capable.out +"%N")
                end
end -- class APPLICATION

I put the multithreaded setting to true in the project setting. When I run this application, it tell me: "Is thread capable: False". But I created a lot of multithreadeing application in other languages (java, python, c++, etc.) in my Ubuntu box. So it is thread capable.

1- Is there anyone who successfully create multithreading application on Linux with Eiffel
2- What do you think I must do?

thanks a lot!

Louis  :)
Emmanuel Stapf [ES]
RE: Linux Ubuntu multithreading
Reply Threaded More
Print post
Permalink
> 1- Is there anyone who successfully create multithreading application on
> Linux with Eiffel

Yes.

> 2- What do you think I must do?

The issue is that by default you are using the monothreaded precompiled library of
EiffelBase. So to make your application multithreaded you can either:
- choose the multithreaded precompiled library (base-mt) and recompile from
scratch
- remove the usage of the precompiled library

Hope this helps,
Manu


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/eiffel_software/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/eiffel_software/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:eiffel_software-digest@...
    mailto:eiffel_software-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    eiffel_software-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Louis M
RE: Linux Ubuntu multithreading
Reply Threaded More
Print post
Permalink
Thanks! It works!

Louis  :)

Emmanuel Stapf [ES] wrote:
> 1- Is there anyone who successfully create multithreading application on
> Linux with Eiffel

Yes.

> 2- What do you think I must do?

The issue is that by default you are using the monothreaded precompiled library of
EiffelBase. So to make your application multithreaded you can either:
- choose the multithreaded precompiled library (base-mt) and recompile from
scratch
- remove the usage of the precompiled library

Hope this helps,
Manu


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/eiffel_software/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/eiffel_software/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:eiffel_software-digest@yahoogroups.com
    mailto:eiffel_software-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    eiffel_software-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/