What is More Faster Using Functions or Using Static Methods in multiple threaded programme?Please explain why it is faster.?
What is More Faster Using Functions or Using Static Methods in multiple threaded programme?Please
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You may have heard that “pure functions” are better for multithreading. A pure function can often be implemented as as static method in Java, but it could also be implemented as an instance method. The main point is that when multithreading it is always better if you don’t have any global variables that can change. So if you have an immutable object, that’s as good as having static method implementing a pure function.