When the employer gives notice, it must release you from work for at least half of the notice period (Mt. 70). You are paid the absence fee for this time: you get your pay but don't have to come in. At your request it must be given in no more than two parts.
What it is for
Time to find a new job. During the exemption you can go to interviews freely and, unless your contract forbids it, even start working elsewhere.
When you resign
If you resign, the employer doesn't have to release you, but you can agree on it. In the UK, release for the whole notice period is called garden leave.
How many days can you expect? Check with the notice period calculator.