I put this in general because I don't believe it is limited to an OS and it is about a combination with samba.
Here's the situation:
I keep my files on a debian server, and share them to my windows PC with samba, where I play them with VLC. Because my samba shares/harddisks on the server are fairly busy, I use a script to kick samba connections which use too many threads (5 or more) to download or stream (it is currently not possible to limit this with samba). Here's the catch: Streaming with VLC opens more than a 140 threads to read the files.
Is there a way to limit the amount of threads? preferably, I would like it to use only 1 thread.