Tips corner

This page provides technical tips related to computer sciences.

05
January
2021

Software/Hardware upgrade of a Windows PC This article describes step by step the hardware/Software upgrade of a PC running Windows 10 to make it more performant.
20
December
2020

Possible bug in pthread_yield() This article focuses on a possible bug in the implementation of pthread_yield() service in the GLIBC.
12
December
2020

How an untouched local variable makes a thread crash This article explains why a thread entry point defining a huge variable makes the thread crash although the variable is not touched.
01
September
2020

Using sendfile() to copy files To copy some memory mapped files into dump files. One may use dd shell command. But it is not the most efficient way to make it.
13
July
2020

Using GCC sections to reorder the code To increase the cache locality and reduce the icache misses, it may be useful to group hot functions into memory. The ability of GCC to arrange data and code into sections can be used to make it.
15
April
2020

Host's name in the prompt of bash Why the host's name is not updated in the prompt of bash ?
20
October
2019

Value of "%h" in "/proc/sys/kernel/core_pattern"
Which host name "%h" is ? The initial uts_namespace or the crashing task's one ?
14
May
2019

Is "%m" format reentrant ?
Can we use the "%m" format in printf-like functions in multithreaded programs ?
25
December
2013

Thread's stack memory consumption
The implicit virtual memory consumption when a process  creates and terminates threads.
07
August
2012

The GCC nonnull attribute and compiler optimizations
The impacts of the compiler optimizations when the GCC nonnull attribute is used.
02
January
2016

How to make executable shared libraries
How to make shared libraries become executable programs.
28
April
2011
Why a thread creation could fail ?
The pthread_create() service from the pthread (NPTL) library, may fail returning the ENOMEM or EAGAIN error. This papers focuses on the reason why this could happen and how to solve the problem.
31
May
2010
Is inet_ntoa() reentrant ? How to use inet_ntoa() in a reentrant and MT-safe way.
01
January
2009
How to use printf() efficiently Tip to use the C library printf() function efficiently.
31
March
2008
Making and managing shared objects in GNU/Linux environment Tip to generate shared libraries correctly in order to ensure that static constructors and destructors will be called.
06
April
2008
Hard links to save space on file systems How to save (RAM)disk space and enhance the file system accesses by using hard links instead of symbolic links.