Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
58 user(s) are online (42 user(s) are browsing Forums)

Members: 0
Guests: 58

more...

Support us!

Headlines

 
  Register To Post  

fork()
Quite a regular
Quite a regular


See User information
Given the direction the AmigaHW is going (more specifically the support of dual core etc) does this mean we could end up having a type of fork() support? e.g. the child task could be routed and ran through the 2nd cpu?

Has it been done for windows or perhaps it just doesn't work this way.

Just an end of the working day speculation

~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
Go to top
Re: fork()
Just can't stay away
Just can't stay away


See User information
@Slayer

I don't see how a 2nd CPU would help with implementing fork() function. Better idea IMO would be to eventually use the 2nd CPU to implement SMP in AmigaOS (Forbid() and Disable() would have to stop the other CPU and their use would be discouraged in new programs except where they are really necessary) and instead for now implement vfork(), which is kind of a cut down version of forkthat ixemul.library and arosc.library has.

Go to top
Re: fork()
Quite a regular
Quite a regular


See User information
@salass00

Yes I was going to mention the implementation in ixemul. Made it easy to port some MUD codebases back in the day.

Obviously my understanding of what fork() actually does is limited. I assume it's a child task executed from a parent and kind of detached but not? That's why I thought it could be seperated to the other cpu... a waste for sure (unless the child task is a big task in its own right) but just an idea.

~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
Go to top
Re: fork()
Supreme Council
Supreme Council


See User information
@Slayer

fork() actually creates a replica of the original process. Including stuff like file descriptors. IIRC replicating fork() without some redecoration of the way AOS handles processes and resources isn't possible.

You can read more about it here:

http://www.opengroup.org/onlinepubs/000095399/functions/fork.html

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: fork()
Quite a regular
Quite a regular


See User information
@orgin

ah, that's it, thanks for the explanation and documentation!

~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project