首页 > 留学知识库

问题: the number of threads access to shared resources这句话对不对

整句是A semaphore is a protected variable or abstract data type which constitutes the method for restricting the number of threads access to shared resources.信号量是一个保护变量或抽象数据类型构成的方法用来限制访问共享资源的线程数量。
the number of threads access to shared resources这句对不对。

解答:

我觉得可以这样翻译:
信号量是一个(提供限制访问共享资源线程数量方法的)被保护变量或者抽象数据类型。

因为which constitutes the method for restricting the number of threads access to shared resources这个部分应该是定语从句,其先行词应该是a protected variable or abstract data type。