Why is that the both are working without any problem, but in first its giving some type of problem and in second it doesn't?

It could be due to differences in hardware, software or environmental factors.

Related articles:

The Mystery of Inconsistency: Why Two Working Systems Can Behave Differently
Inconsistency in the behavior of computer systems is a common phenomenon that is difficult to explain. Two systems that are expected to behave similarly can sometimes behave differently for reasons that are not immediately apparent. This inconsistency can be frustrating for users and can make it difficult to diagnose and fix problems.

Troubleshooting the Unexplainable: Understanding Technical Hiccups in One System but Not Another
Technical hiccups are common occurrences in any system, be it a computer or a car. They can range from minor issues like slow internet speeds to major problems like software crashes. However, it is not uncommon to encounter a technical hiccup in one system but not in another despite having similar configurations. This article aims to explore the possible reasons behind such anomalies and how to troubleshoot them.

When Functionality Falters: Investigating the Reasons Behind Uneven System Performance
Computers and other electronic devices have become an integral part of our lives, and when they fail to function properly, it can be frustrating and impede productivity. System performance can become uneven when software applications, operating systems, or hardware components fail or degrade. In this article, we will investigate the reasons behind uneven system performance and how it can impact the overall functionality of a computer or electronic device.