Skip to content

output in Line A and Line B?

What would be the output in Line A and Line B? Do you think there is synchronization problem in updating the variable value? Answer Child value is 200 and Parent value is 300 always. pthread_join causes the main thread to wait until the other thread finishes executing. Both threads are acting on the same glob…

What’s the purpose put a .so file before execution file?

I saw a execution method today. I know when putting a bash variable before execution command means to set that environment variable before execute command. But now, it is a share lib, what’s the purpose and function to put there? Answer The dynamic linker /lib/ld-linux-x86-64.so is special in that it can be r…