Programming

279   Articles
279
L

Locking a file in python

1 Min Read
0 69
1 Min Read
0 69

Managing a file is very important, particularly when multiple processes read and write to the same file. Using file locking we can prevent concurrent access to a file. In this article, we will see how to lock a file using…

Continue Reading
P

Pretty print java duration

1 Min Read
0 459
1 Min Read
0 459

In this article, we will see how to format Java’s duration object in a readable format. Java’s duration class is part of the java.time package and is often used for measuring time intervals or durations in various Java applications. While…

Continue Reading
Exit mobile version