GithubHelp home page GithubHelp logo

More userfriendly about pthreads HOT 1 CLOSED

allada avatar allada commented on August 15, 2024
More userfriendly

from pthreads.

Comments (1)

krakjoe avatar krakjoe commented on August 15, 2024

Hi there,

Thanks for your kind comments ...

pthreads is still in development: PHP is the most hostile environment possible in which to implement a useful, working threading API. As such, it simply isn't possible to provide the same kind of read/write access to shared memory that is possible when using native posix threading, nor will it ever be reliably.

The documentation is also somewhat out of date and you'll find the code in git is different to that described in the documentation because the documentation relates to the last release. Since the last release, read access is granted to all contexts with a reference to a thread, imported threads are now the same type of object as the user creates, joining results in a join of the threading context with the calling context in respect to the members defined in the thread, and pthreads has overridden the functionality of the private and protected keywords to provide synchronized methods ( protected ) and private methods that can only be executed by the threading context.

I don't really need any help with pthreads, by all means send fixes, but the project is moving at a speed I can work with around work and that suits me for now. I'm glad you're interested in pthreads, and by all means send your suggestions to me and they will be considered, but designing such an API isn't an easy thing to do and I think everyone would feel better knowing it wasn't written by novices :)

from pthreads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.