Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...

Browsing this Thread:   1 Anonymous Users





What i have To change To get my progs Smp aware?

Joined:
2004/10/24 23:58
Group:
Member
Posts: 144
Offline
What I have To change or know when programming SMP aware software for Aros?

Posted on: 7/8 1:16
Transfer the post to other applications Transfer


Re: What i have To change To get my progs Smp aware?

Joined:
2005/6/16 11:11
Group:
Member
Posts: 604
Offline
Nothing .

Don't use Forbid or Disable (nothing new here).

And use more than one thread to do the work obviously and take care for parallel execution of the single threads. Nothing new here either, just some atomic cpu operations might not be able to sync your threads anymore. Semaphores are the right thing to do here anyways, even without smp.

But so far, there is no smp-aros available, at least none, which distributes tasks without special tweaking to other cpus.

Posted on: 7/10 2:36
Transfer the post to other applications Transfer


Re: What i have To change To get my progs Smp aware?

Joined:
2004/10/24 23:58
Group:
Member
Posts: 144
Offline
Ok, how about system structures, is there any other changes than this->Task?


Posted on: 7/10 2:47
Transfer the post to other applications Transfer


Re: What i have To change To get my progs Smp aware?

Joined:
2005/6/16 11:11
Group:
Member
Posts: 604
Offline
I guess, it is a little bit early for that. There will be some restrictions, like accessing the task list etc., but I don't know enough about the plans here.

I am pretty sure, not everything is decided yet.


Posted on: 7/10 4:31
Transfer the post to other applications Transfer


Re: What i have To change To get my progs Smp aware?

Joined:
2004/10/24 23:58
Group:
Member
Posts: 144
Offline
How I replace forbid if I need to make sure my old code keeps running ok in smp world? Any basic example code where you have old forbid version and new mutex tms. code side by side?

Is there any compiler macros/if defs allready which makes forbid etc. as compiler error so we can find dangerous code faster?

Posted on: 7/11 14:10
Transfer the post to other applications Transfer


Re: What i have To change To get my progs Smp aware?

Joined:
2005/6/16 11:11
Group:
Member
Posts: 604
Offline
Most code should not need Forbid. Use Semaphores, Messages etc to sync your own code.

Accessing system structures is a different thing. Use the proper API whenever possible.

How single structures will be protected in the future is still a moving target (well, at the moment there is no movement), at least it is not documented. And you never should use undocumented stuff .

And to sum it up, I just watched the commits and built a test-smp-aros once or twice to try it out. So all said above is my interpretation, I am no active contributor to smp development.

Posted on: 7/12 4:37
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4340
2 magorium
magorium
4095
3 phoenixkonsole
phoenixkonsole
3887
4 nikolaos
nikolaos
3677
5 deadwood
deadwood
2923
6 ncafferkey
ncafferkey
2619
7 mazze
mazze
2211
8 clusteruk
clusteruk
2091
9 Kalamatee
Kalamatee
2023
10 damocles
damocles
1789
© 2004-2017 AROS Exec