在每一个实例下,我运行一个简单的程序,测定循环调用一个方法10,000,000次所需的运行时间,我调用了同步和非同步两个版本,并比较了结果。
In each case, I ran a simple program that measured the run time of a loop calling a method 10,000,000 times, calling both a synchronized and an unsynchronized version, and compared the results.
它列举了一些不同的实例,不同的平台和不同的jvm下一个同步的方法调用相对于一个非同步的方法调用的损失。
It compares the cost of a synchronized method call to an equivalent unsynchronized one in several different cases and on several different platforms and JVMs.
等待数量和总等待时间:调用某方法或服务时,等待线程的实例数量和总占用时间。
Number of waits and total wait time: the number of instances and total elapsed time when the thread was waiting while invoking a method or service.
阻塞数量和总阻塞时间:在调用某个方法或服务时,处于BLOCKED状态的线程的实例数量和总占用时间。
Number of blocks and total block time: the number of instances and total elapsed time when the thread was in a BLOCKED state while invoking a method or service.
您只需实例化类并调用想要的方法,所有的编码处理和SOAP消息的生成都从代理类处理。
One needs only to instantiate the class and invoke a desired method, and all the encoding handling and the generation of SOAP messages is handled from the proxy class.
这个切面在方法调用周围加入建立和停止StopWatch实例的字节码。
This aspect surrounds method calls with bytecode that creates and stops a StopWatch instance.
这种方式非常简便:实例化一个TextTestRunner类型的对象,在其中添加测试和输出器,然后调用run方法。
The pattern has been easy enough: instantiate an object of type TextTestRunner, add tests and the outputter to it, and then invoke the run method.
本实例显示了如何利用EJB引用来查找Personbean的客户端接口和调用定制创建方法。
This example shows you how to use EJB references to look up the client interface for the Person bean and invoke the custom create method.
为了在结构化类型的实例上调用mutator或observer方法,请使用双点(. .)运算符(清单1、清单2和清单3)。
To invoke a mutator or observer method on an instance of a structured type, use the double-dot (..) operator (Listings 1, 2, and 3).
在我们的示例中,您能找到一个泛型函数,此函数能创建XMLHttpRequest实例和调用实例的open和send方法。
In our case, you could find a generic function that creates the XMLHttpRequest instance and calls its open and send methods.
通过调用Interaction和Connection实例中的关闭(close)方法来关闭交互及连接。
Close the interaction and then the connection by the calling the close method on instances of interaction and connection.
例如,如果使用第三方库,比如通过PHPExtensionandApplicationRepository (PEAR)可以使用的库,您将发现自己在实例化对象和调用方法。
For example, if you use a third-party library, such as those made available by PHP Extension and Application Repository (PEAR), you will find yourself instantiating objects and calling methods.
服务器上的remoting框架代码获取这个请求,对这个XML进行解除编排处理,提取出组件名、方法和实参,然后再在服务器端组件实例上调用此方法。
The remoting framework code on the server picks up this request, unmarshals the XML, extracts the component name, method, and arguments, then invokes the method on the server-side component instance.
对于此后端类型,UDPDMI的每个方法均包含查找目标EJB Home、获得实例和调用指定方法的代码。
With this backend type, each method of the UDPDMI contains code to lookup the home of the target EJB, obtain an instance, and to invoke the specified method.
在本节中,我们将创建ActionwebService web服务,并访问使用web_client_api函数的web服务和直接实例方法调用。
In this section, we create a Action web service web service, and access the web service using the web_client_api function and the direct instance method invocation.
但是如果你有一个摘要方法一非抽象班,你可以实例化类和对象,将未实现的方法,你将无法调用。
However if you had an abstract method in a non-abstract class, you could instantiate the class and get an object, that would have an unimplemented method, which you would be unable to call.
文中通过实例来说明调用MATLAB符号工具箱来进行符号矩阵的运算和利用M ATLAB自身的编辑器来处理数据的方法和优势。
The paper USES an example to explain how to load MATLAB symbolic toolbox to do symbol matrix operation and the advantages of editor of MATLAB for dealing with data.
ClaimsIdentity的实例是调用用户管理器的CreateIdentityAsync方法而创建的,在其中传递了一个用户对象和DefaultAuthenticationTypes枚举中的一个值。
Instances of ClaimsIdentity are created by calling the user manager CreateIdentityAsync method, passing in a user object and a value from the DefaultAuthenticationTypes enumeration.
ClaimsIdentity的实例是调用用户管理器的CreateIdentityAsync方法而创建的,在其中传递了一个用户对象和DefaultAuthenticationTypes枚举中的一个值。
Instances of ClaimsIdentity are created by calling the user manager CreateIdentityAsync method, passing in a user object and a value from the DefaultAuthenticationTypes enumeration.
应用推荐