Welcome, Guest. Please login or register.

Author Topic: AmiZilla has a new home on the web www.amizilla.net  (Read 8831 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: AmiZilla has a new home on the web www.amizilla.net
« on: September 08, 2004, 03:05:20 PM »
Quote

Piru wrote:
I have to agree with Cymric in most points (however semi-working libpthreads does exist at least). fork() will never work on AmigaOS or compatibles.


I still don't get the point of fork(), is it just a quick and simple way to get a small part of your code executing as a separate thread which can do a function and die...?hmmm... putting it like that it seems really usefull :-D

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: AmiZilla has a new home on the web www.amizilla.net
« Reply #1 on: September 08, 2004, 03:22:39 PM »
Quote

Piru wrote:
Quote
I still don't get the point of fork(), is it just a quick and simple way to get a small part of your code executing as a separate thread which can do a function and die...?

No. It splits the current process in two, the only difference being the return code of fork() call. Everything else is 100% the same, addressing, fhs, etc.

AmigaOS or compatibles will never be able to implement fork().


Yup, I know what it does, but I find it hard to see the point :-)

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: AmiZilla has a new home on the web www.amizilla.net
« Reply #2 on: September 08, 2004, 05:12:14 PM »
Quote

Piru wrote:
Quote
I find it hard to see the point :-)

It's for lazy coders so that they don't need to write proper asynchronous I/O in their apps. :-)


Ha! That's what it looked like (which is what I was hinting at earlier) :-D

But there must be some feature of using it that is not "doable" in a formal way, otherwise it would not have been included in the POSIX spec... would it?