Regex (PCRE) matching row with excluded words

Published on Author gryzli

Recently I had a task to match a given row, only if it contains words, different than a predefined non-matching word list.    Here is the example: Let say we have the excluded words: “bad_word1|bad_word2” We must match a row only if there words, different than the bad words from above   That should match:… Continue reading Regex (PCRE) matching row with excluded words

Inter Process Communication (IPC) – Mutual exclusion

Published on Author gryzli

I will try to explain some principles and methods for achieving mutual exclusion. This post is written entirely because of me and my need to understand correctly the different approaches in achieving mutual exclusion.   First we need to define some key words: Race condition  – Whenever two or more processes are trying to read/write the… Continue reading Inter Process Communication (IPC) – Mutual exclusion