Items tagged with thread

Feed

 

 

 

 

I am working with a package that is not entirely stable and which can sometimes corrupt Maple's state. I would like to "sandbox" the risky operations, executing each of them in another kernel thread that I can destroy (or somehow reset), getting back just the return result of each operation (each return result involves only global names, numbers, and strings). What would be a good way to achieve this?

I see the Task model, but it is not clear to me that each kernel used is effectively restart()'d for each Task Start(). At the moment I would have a bit more confidence in manually using Thread Create(), except that I do not see any information on how to destroy a thread (just to destroy Mutex and Condition Variable resources.)

This is, I suppose, a kind of security, but it is not covered by EngineSecurity. (Not unless I need to process[popen] to achieve this.)


This post is an index page for reading the Parallel Programming blog posts.

Hi all,

I wonder if it makes sense to use tables as datatype for efficient maple code. I need this datatype to pass parameters to a procedure which is called many times.

In particular, I have the following criteria:

* efficient (fast) to access for read and write.

* potentially thread save ( I can also imagine having individual copies for each thread)

* present in future Maple versions

* easy to transform into C-code later

I have a for loop which run 50000 times.

I have a dual core cpu made by amd, so parallel is a better choice.

There are two packages in Maple 15: Grid and Thread.

I want to know which one is more effeciency?

And in my program,there are no intersection between for-loops.

how to programming in parallel?

Thank you in advance.

Dear all, I try to use threads in Maple 13 with Thread:-Create() and Thread:-Wait(). The worksheet works if I use no or just a single thread. One of the subroutines contains an fsolve command to find the zeros of some Function which involves special functions (LambertW). When I create two threads I get error messages such as `fsolve/StorePoint`, "invalid point dimension" and `fsolve/StorePoint`, "numeric exception: division by zero". Is the fsolve function not thread save? I tested, using stopwhen(...
Page 1 of 1