What “thread safe” really means…In Practical terms

前端 未结 7 903
再見小時候
再見小時候 2021-01-30 13:24

please bear with my newbie questions..

I was trying to convert PDF to PNG using ghostscript, with ASP.NET and C#. However, I also read that ghostscript is not thread saf

7条回答
  •  逝去的感伤
    2021-01-30 13:34

    If you are using ghostscript from a shell object (i.e. running a command line to process the file) you will not be caught by threading problems because every instance running will in a different process on the server. Where you need to be careful is when you have a dll that you are using from C# to process the PDF, that code would need to be synchronized to keep from two threads from executing the same code at the same time.

提交回复
热议问题