> For the complete documentation index, see [llms.txt](https://andreyakinshin.gitbook.io/problembookdotnet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://andreyakinshin.gitbook.io/problembookdotnet/en/multithreading/locksliminfinalizer-s.md).

# “LockSlimInFinalizer” (Solution)

## Answer

```
~Foo: start
Exception: SynchronizationLockException
~Foo: finish
```

## Explanation

A [SynchronizationLockException](http://msdn.microsoft.com/library/system.threading.synchronizationlockexception.aspx) will be thrown because the finalizer will be called from the GC thread.

[Problem](/problembookdotnet/en/multithreading/locksliminfinalizer-p.md)
