473,396 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help with process migration, in openmosix

I would appreciate some help to get started so I can go off and be able to
return with more intelligent questions.

My child processes will not need to speak to each other, they will only need
to return the calculation results and exit. I understand that all the child
processes will have to complete before the code can move to the next time
step. So with that in mind I expect that I will have to ensure that all the
children finish their calculations and should any fail it must be possible
to restart that process.

The reason for wanting to migrate this code is so that the independent
processes can run concurrently on an open mosix cluster.
Preferred language c. Using Linux openmosix kernel 2.4.22

If someone could either help me or point me in the right direction I would
be most grateful.

What I would like to do is to farm out various, discrete
sections of the simulation to separate threads (where openmosix will then
work its magic) .

My pseudo code would look roughly like this
For Time = 0 to time_max
Make_list_of_neighbours (particle_neighbours)
For particle_id = 0 to num_particles
calculate_new_particle_position (particle_id, particle_neighbours)
Next particle_id
Next time

Of course there is other code in the main bit, but I would like the
calculate_new_particle_position routine to spawn/fork/clone.

If someone has an example of such a routine I would appreciate some help.

Cheers

Mike

Nov 14 '05 #1
1 1583
mikegw <mi******@hotmail.spammers.must.die.com> scribbled the following:
I would appreciate some help to get started so I can go off and be able to
return with more intelligent questions. My child processes will not need to speak to each other, they will only need
to return the calculation results and exit. I understand that all the child
processes will have to complete before the code can move to the next time
step. So with that in mind I expect that I will have to ensure that all the
children finish their calculations and should any fail it must be possible
to restart that process. The reason for wanting to migrate this code is so that the independent
processes can run concurrently on an open mosix cluster. Preferred language c. Using Linux openmosix kernel 2.4.22


ISO standard C has no concept of processes. Please ask in
comp.unix.programmer.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"Remember: There are only three kinds of people - those who can count and those
who can't."
- Vampyra
Nov 14 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Paddy McCarthy | last post by:
Frustrated at being prevented from using Python at work I went gunning for Perl. Time to roll out some useless Google statistics to make me feel better Google Phrase count...
1
by: Chandra Mohan | last post by:
Hi, We need help on following things, 1. Inputs on creating comments on the columns & Tables of a SQL Database & generating the sql script of that. 2. Is it possible to call a .exe file in...
8
by: Adam Greifer | last post by:
Hi! I'm a newbie at DB2 but have 13 years of SQL Server. I need to convert over 100 SQL Server procs to DB2. I haven't had much luck with the IBM Integration Toolkit and want to avoid ER/win...
3
by: Kayda | last post by:
Hi: Simple question--is there a tool that convert SQL script written in SQL Server to the equivalent in another DBMS such as Oracle or DB2? Thanks!! blair
1
by: sac | last post by:
I am using DB2 v8.1 on UNIX. A few weeks ago the DBAs carried out node migration activity on the database. After the node migration I observed that the queries that execute on temporary tables...
0
by: Henry Reardon | last post by:
I just installed DB2 Personal Developer's Edition V8.2 (FP7) over my old DB2 V7.2 instance but I'm having some problems. Can anyone help? The first problem is that my migration didn't go too...
1
by: Jason | last post by:
Hi, I am in the process of planning an NT to 2003 migration and have a couple of questions. The client has 15 servers total. 1 PDC, and 1 BDC with various member servers running 2000 and NT. My...
2
sangeetha jagannathan
by: sangeetha jagannathan | last post by:
Hi friends i am migrating my product from vc++6.0 to vc++8.0. now i need to submit the report to my college. My report sholud also contain the system design document. For this i need to include some...
2
by: sarah12 | last post by:
Hi, I want to change : <?xml version="1.0" ?> <nplbiblio > <document status="U" creadate="19990410"> <xp>000000001</xp> <doctype>JOURN-ART</doctype> <prdate>19880901</prdate>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.