<div dir="ltr"><div dir="ltr">Alan Bateman <<a href="mailto:Alan.Bateman@oracle.com">Alan.Bateman@oracle.com</a>> ezt írta (időpont: 2023. aug. 7., H, 0:14):</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
    A connection pool for DB connections is a reasonable example where
    you might limit concurrency. It's finer grain than the number of
    threads, which I think is what your original message was trying to
    get to.<br><br></div></blockquote><div><br></div><div>Well, yeah, as I wrote the DB was a bad example since almost always people use connection pools there which solves the issue. However, that is not the case for a lot of other things, such as limiting calls to an external service, limiting the overall concurrent http calls, limiting the maximum number of concurrent file processing, limiting the number of an arbitrary concurrent processing to avoid too high concurrent memory usage (assuming the processing requires considerable memory), and there can be a lot of other things.</div></div></div>