- cmsg cancel <mjib92$153$2@dont-email.me> - 6 Updates
- About Jsva and C# and Threadpool - 1 Update
- About my Threadpool engine... - 1 Update
- I have updated some of my projects - 2 Updates
- Efficient Threadpool engine version 2.0 - 2 Updates
bleachbot <bleachbot@httrack.com>: May 20 06:04PM +0200 |
bleachbot <bleachbot@httrack.com>: May 20 06:08PM +0200 |
bleachbot <bleachbot@httrack.com>: May 20 08:27PM +0200 |
bleachbot <bleachbot@httrack.com>: May 20 08:37PM +0200 |
bleachbot <bleachbot@httrack.com>: May 20 09:31PM +0200 |
bleachbot <bleachbot@httrack.com>: May 20 10:01PM +0200 |
Ramine <ramine@1.1>: May 20 04:02PM -0700 Hello, We have to be smart please, please look at the ThreadPoolExecutor Class of Java, look for example at the awaitTermination() method, it says: --- boolean awaitTermination(long timeout, TimeUnit unit) Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first. -- read more here: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadPoolExecutor.html#method.summary Did you notice ? In Java when you wait for the tasks you have to wait for "ALL" the tasks, and that's not efficient , and if you want to use the object from multiple threads i think it will have the same effect, you can avoid some of the problems by using many objects of the ThreadPoolExecutor class but this will take ressources and this will cause more and more context switches and that's bad, i think C# has the same problem, other than that Java and C# doesn't support priorities, it means that you can not give priorities to tasks/jobs, like high or normal or low, and that's not good for games and other applications where you have to use priorities even if the system is not a realtime system, this is why i have decided to implement my efficient Threadpool engine version 2.0 that supports those characteristics, so that you can create a child object of the Threadpool class that will use the same worker threads and that will wait only for the tasks that you will add with the execute() method , and also my efficient Threadpool engine supports 3 priorities, High and normal and low, that's where my efficient Threadpool engine comes in hand and that's where it's efficient. Hope you will like it. You can download my efficient Threadpool Engine version 2.0 from: https://sites.google.com/site/aminer68/threadpool-with-priorities Thank you, Amine Moulay Ramdane. |
Ramine <ramine@1.1>: May 20 03:31PM -0700 Hello, As you have noticed i have implemented an efficient Threadpool engine version 2.0, also what i want to say in this post, is that i have made it smart like a smart automaton with states and transitions that will guide you using exception handling so that to avoid the forbiden transitions. I have enhanced the automaton and i think that it's efficient now, please read the HTML tutorial inside the zip file to understand how to use the execute() and seCounter() and wait() methods etc. Please look at the source code to learn more about it.. and as you have noticed that all my projects come with the source code cause they are freewares, and i think that all projects are stable now and fast , hope you will like them... You can download all my projects from: https://sites.google.com/site/aminer68/ Thank you for your time, Amine Moulay Ramdane. |
Ramine <ramine@1.1>: May 20 02:30PM -0700 Hello, I have updated some of my projects, i have noticed that some of my projects was using a scalable array lock that was slowing down when used with background processes, and i have correct that by using my new scalable AMLock that is very fast and that revolved this problem, the projects that was updated are: Parallel archiver Parallel compression library and Parallel sort library.. Please you can download them again , they are at the same version even if i have updated them to use my scalable AMLock.. Also i have just ported my scalable AMLock to the Delphi XE version, you can download it from here: https://sites.google.com/site/aminer68/scalable-amlock And please notice that i think that all my projects are stable now and they are also fast. Thank you, Amine Moulay Ramdane. |
Ramine <ramine@1.1>: May 20 02:41PM -0700 I correct some typos , please read again... Hello, I have updated some of my projects, i have noticed that some of my projects was using a scalable array based lock that was slowing down when used with background processes, and i have corrected that by using my new scalable AMLock that is very fast and that revolved this problem, the projects that was updated are: Parallel archiver Parallel compression library and Parallel sort library.. Please you can download them again , they are at the same version even if i have updated them to use my scalable AMLock, you can download them from: https://sites.google.com/site/aminer68/ Also i have just ported my scalable AMLock to the Delphi XE versions, you can download it from here: https://sites.google.com/site/aminer68/scalable-amlock And please notice that i think that all my projects are stable now and they are also fast. Thank you, Amine Moulay Ramdane. |
Ramine <ramine@1.1>: May 20 12:05PM -0700 Hello, I have finally implemented an efficient Threadpool engine version 2.0, this version is really efficient because you can give priorities to your jobs that you will distribute to the Threadpool, and when you give for example a high priority for the jobs , the jobs of the high priority will be executed faster and the response time will be lower, also when you distribute your jobs in a thread and you wait for them, you will wait only for those jobs to finish , you will not wait for all the jobs inside the Threadpool engine to finish, and that's efficient, other than that my efficient Threadpool engine with priorities has given a throughput of 3.2 millions of transactions per seconds and that's great ! I have added 3 methods to my efficient Threadpool engine, now you can wait for the jobs to finish with the wait() method, please read the HTML tutorial inside the zip file to understand more how to use my efficient Threadpool engine... You can download my efficient Threadpool Engine version 2.0 from: https://sites.google.com/site/aminer68/threadpool-with-priorities And please click on the small arrow on the right of the zip file to download.. Thank you, Amine Moulay Ramdane. |
Ramine <ramine@1.1>: May 20 12:08PM -0700 Please read again, i correct some typos... Hello, I have finally implemented an efficient Threadpool engine version 2.0, this version is really efficient because you can give priorities to your jobs that you will distribute to the Threadpool, and when you give for example a high priority for the jobs , the jobs of the high priority will be executed faster and the response time will be lower, also when you distribute your jobs in a thread and you wait for them, you will wait only for those jobs to finish , you will not wait for all the jobs inside the Threadpool engine to finish, and that's efficient, other than that my efficient Threadpool engine with priorities has given a throughput of 3.2 millions of transactions per second and that's great ! I have added 3 methods to my efficient Threadpool engine, now you can wait for the jobs to finish with the wait() method, please read the HTML tutorial inside the zip file to understand more how to use my efficient Threadpool engine... You can download my efficient Threadpool Engine version 2.0 from: https://sites.google.com/site/aminer68/threadpool-with-priorities And please click on the small arrow on the right of the zip file to download.. Thank you, Amine Moulay Ramdane. |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.programming.threads+unsubscribe@googlegroups.com. |
No comments:
Post a Comment