1) While working dates, when and why the local time and universal times are used?
2) Which multi-threaded program is recommended for reducing CPU usage? Why?

Recommended Answers

All 2 Replies

As to question 1, it's all about what I need from my app. If I'm measuring task duration I don't care if it's local or UTC. Just as long as I'm consistant I get my duration.

When dealing with the user, you almost always use local.
When logging events, UTC is my choice as that way I can use this app worldwide and have a consistent date/time system.

As to question 2, I've never considered using such a program. Adding more overhead with such as program sounds counter productive. I think you'll have to expand your question with an example.

Which multi-threaded program is recommended for reducing CPU usage

I think the obvious answer to that is "the program that does the least amount of processing."

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.