ASDen Posted August 25, 2007 Share Posted August 25, 2007 Hey Guys , I released a second version of my Threading Class ;D i added(Inter Thread Communication) and data access Synchronization notice: the features above were added using a text file ,some string parsing and permissions for the Synchronization of data delivery . You can Get It here http://sourceforge.net/project/showfiles.php?group_id=203377 waiting For Your reviews and critique (Please Interact with me don't just take a quick look and GO).Thanks in advance Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/ Share on other sites More sharing options...
tommyboy123x Posted August 29, 2007 Share Posted August 29, 2007 sorry to sound ignorant, but what exactly does this do / mean for a programmer? Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-337000 Share on other sites More sharing options...
ASDen Posted September 1, 2007 Author Share Posted September 1, 2007 May be you didn't notice this thread:- http://www.phpfreaks.com/forums/index.php?topic=155604.0 Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-339028 Share on other sites More sharing options...
tommyboy123x Posted September 2, 2007 Share Posted September 2, 2007 lol no i saw it i just don't know what it does / the purpose of it. Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-339506 Share on other sites More sharing options...
ASDen Posted September 3, 2007 Author Share Posted September 3, 2007 if you read the doc you can see you 1. can build really interactive interfaces 2. make full usage of your connection (download managers/multiple RSS readers) Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-340119 Share on other sites More sharing options...
ASDen Posted September 3, 2007 Author Share Posted September 3, 2007 (sorry for splitting but some un detected problem limiting post length ) 3. making real usage of the server processor 4. benefiting real threading abilities in Apache 2/IIS ? Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-340127 Share on other sites More sharing options...
tommyboy123x Posted September 3, 2007 Share Posted September 3, 2007 I did read it i just couldn't comprehend it... i guess the problem is i dont know what a thread is (a process?) but from what i can see its a great script Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-340171 Share on other sites More sharing options...
phpSensei Posted September 3, 2007 Share Posted September 3, 2007 yeah, i just dont understand either... Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-340203 Share on other sites More sharing options...
sspoke Posted September 4, 2007 Share Posted September 4, 2007 @ tommy threading makes the job get done faster.. lets say your program in C++ runs of 1 thread and its running a counter from 0 - 1 million.. and if you run 2 threads both with counters running from 0 - 1 million you would get 2 counters.. both running at very high numbers without taking too much CPU memory. Threading splits your process into 2 or more processes and runs em all.. at once. it really gets the job done faster by a massive amount of time. Good example would be Windows 95 it ran without threads.. you can try Windows 95 on your new computer with 3.2ghz 2 GB ram.. it would take ages to load up.. new programs if you have old ones running already. Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-341325 Share on other sites More sharing options...
phpSensei Posted September 4, 2007 Share Posted September 4, 2007 @ tommy threading makes the job get done faster.. lets say your program in C++ runs of 1 thread and its running a counter from 0 - 1 million.. and if you run 2 threads both with counters running from 0 - 1 million you would get 2 counters.. both running at very high numbers without taking too much CPU memory. Threading splits your process into 2 or more processes and runs em all.. at once. it really gets the job done faster by a massive amount of time. Good example would be Windows 95 it ran without threads.. you can try Windows 95 on your new computer with 3.2ghz 2 GB ram.. it would take ages to load up.. new programs if you have old ones running already. what is a thread... i keep thinking Vbulletin. lol Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-341480 Share on other sites More sharing options...
ASDen Posted September 4, 2007 Author Share Posted September 4, 2007 Well what sspoke is a simple efficient way of describing it and is exactly what i mean it makes use of given resources instead of wasting them Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-341666 Share on other sites More sharing options...
ASDen Posted September 5, 2007 Author Share Posted September 5, 2007 You will find the classes now in SF fully commented ( hope you like it ) Awaiting for your Comments Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-341686 Share on other sites More sharing options...
Azu Posted September 12, 2007 Share Posted September 12, 2007 what is a thread... i keep thinking Vbulletin. lol I don't think he means thread as in forum topic. I think he means threads as in it's one application, but has multiple things being processed at the same time, as if it's two or more separate applications. And if your processor has more then 1 core, or supports hyper threading, this can make the application run faster I think. Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-347396 Share on other sites More sharing options...
448191 Posted September 13, 2007 Share Posted September 13, 2007 A thread is a partly isolated part of a process that can run independently from other threads, yet share some of the same resources. For a familiar example, think of PHP installed as an Apache module as opposed to as a CGI binary... When installed as a CGI binary, a new PHP process is created for every request (php-cgi.exe is executed), so in effect you're starting the PHP engine over and over again. When installed as an Apache module, a process is started together with that of the server, and new threads are made (or possibly pooled) for new requests. This has the benefit of sharing in-memory resources, as well as saving initializing time. Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-347558 Share on other sites More sharing options...
phpSensei Posted September 14, 2007 Share Posted September 14, 2007 OH! lol, I get it now Topic Solved. Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-348094 Share on other sites More sharing options...
ASDen Posted September 19, 2007 Author Share Posted September 19, 2007 Solved What? Where is your Feedback/Trails/Critiquing .......... Waiting Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-351130 Share on other sites More sharing options...
mattal999 Posted September 19, 2007 Share Posted September 19, 2007 ? UK Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-351379 Share on other sites More sharing options...
ASDen Posted October 6, 2007 Author Share Posted October 6, 2007 Well after long time no hear i just want to say that the Class has been nominated for innovation competition at PHPClasses.org http://www.phpclasses.org/browse/package/4082.html There u will find modifications & Improvements i added Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-363335 Share on other sites More sharing options...
Azu Posted October 6, 2007 Share Posted October 6, 2007 Oops replied to wrong thread. Please delete this someone.. Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-363491 Share on other sites More sharing options...
emehrkay Posted October 6, 2007 Share Posted October 6, 2007 A thread is a partly isolated part of a process that can run independently from other threads, yet share some of the same resources. For a familiar example, think of PHP installed as an Apache module as opposed to as a CGI binary... When installed as a CGI binary, a new PHP process is created for every request (php-cgi.exe is executed), so in effect you're starting the PHP engine over and over again. When installed as an Apache module, a process is started together with that of the server, and new threads are made (or possibly pooled) for new requests. This has the benefit of sharing in-memory resources, as well as saving initializing time. I did not know that about cgi vs module. We're using IIS at work and I think it is though cgi. I will look into this more and report back to the team. Thanks! Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-363634 Share on other sites More sharing options...
448191 Posted October 8, 2007 Share Posted October 8, 2007 It should be noted that the new FastCGI interface is a lot faster, and the before mentioned doesn't apply anymore to FCGI. Link to comment https://forums.phpfreaks.com/topic/66696-phpthreader-11-added-itc-and-synchronization/#findComment-364348 Share on other sites More sharing options...
Recommended Posts