BOINC:是否有一个简单的示例如何为其编写程序以及如何将其实现到他们的客户端/服务器系统中?

发布于 2024-08-16 22:39:23 字数 633 浏览 3 评论 0原文

我做了一个数值方法作为我的毕业论文,并用java编写了它。当充分执行时,它需要大量的计算时间。所以我寻找替代方案并找到了 BOINC。不幸的是,我没有时间在 BOINC 中执行我的方法,因为我是航空航天学生而不是程序员,所以我决定优先考虑我的 java 程序。现在它已经完成了,我仍然想将其移植到 BOINC 环境。

不幸的是,我正在重新做示例中学习,但在官方网站 http://boinc 上都找不到任何示例.berkeley.edu 也不在互联网上。 那么,您是否知道一个好的且简单的示例,或者您是否有 BOINC 经验并且想为这样的 boinc 项目启动一个新平台?

我对我的方法很现实,它不会 24/7 运行,因为没有与 seti 或折叠项目一样多的工作单元。因此,我希望拥有一个平台,而不仅仅是我的项目,以便当项目的一部分当时没有任何工作单元时,可以处理另一个平台项目。

但首先,我会保持简单,只想知道如何编码并在客户端和服务器系统中使用它。示例项目将用于什么并不重要,只要它足够简单,我可以理解它并为我的方法扩展它。

预先感谢您,安德烈亚斯! :)

PS:我知道BOINC支持JAVA作为编程语言,我的方法是用JAVA编码的。

I did a numeric method as my diploma thesis and coded it in java. It needs a lot of computational time when adequately executed. So I looked for an alternative and found BOINC. Unfortunately I didn't have time for doing my method in BOINC, because I'm an Aerospace student and not a programmer and I decided to keep my priority on my java program. Now it's finished an I still would like to port this to BOINC environment.

Unfortunately I'm learning in re-doing examples and I couldn't find any, neither on the official site http://boinc.berkeley.edu nor in the internet.
So do you know a good and easy example or do you have any experience in BOINC and would like to start a new platform for such a boinc project?

I'm realistic about my method, that it wouldn't run 24/7, because there aren't as many work units as for seti or folding projects. So I would like to have a platform for more than just my project so that another platform project can be worked on, when one part of the project does not have any work units at that moment.

But to start this, I would keep it simple and just want to know how to code it and use it in the client and server system. It doesn't matter what the example projects will work on, as long as it is simple enough, that I can understand it and extending it for my method.

Thank you in advance, Andreas! :)

PS: I know that BOINC supports JAVA as a programming language, and my method is coded in JAVA.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

薄荷港 2024-08-23 22:39:23

据我所知, JavaApps 只是一个想法;我不知道是否有人在真正的 BOINC 项目中尝试过。而且它仅适用于 Windows。而且将整个 JRE 作为 BOINC 应用程序的一部分重新分发似乎有点痛苦(无论是技术上还是法律上)。

另外,我通常不喜欢使用那种“包装器”,其中科学应用程序(使用 BOINC API)启动另一个进程,然后进行真正的计算。它通常是不可靠的。包装器可能会出现很多问题,特别是与控制子进程有关(例如,如果某些东西杀死了包装器,则子进程也必须退出)。

然而,我刚刚发现了一些非常有趣的东西,可以让我为 BOINC 做一个更好的 Java 包装器......敬请期待! (但也不要屏住呼吸;现在是假期!)


同时,我建议您首先阅读 BOINC wiki 并使用“hello world”应用程序设置服务器;如果您遇到任何问题,请在此处或中提出有关您的问题的具体问题boinc_projects 邮件列表

(当然,付钱给我为您安装服务器也是一种选择;)但我不能保证任何事情;甚至连每年这个时候我都没有时间)

As far as I know, JavaApps is just an idea; I don't know if anyone actually tried it in a real BOINC project. And it's Windows-only. And it seems to be a bit of a pain to redistribute the entire JRE as part of the BOINC application (both technically and legally).

Also, I generally dislike using that kind of “wrapper” where the science app (using the BOINC API) starts another process that then does the real computation. It's usually unreliable. There are lots of things that could go wrong with the wrapper, especially related to controlling the child process (eg. if something kills the wrapper, the child process has to quit too).

However, I just found something pretty interesting that may let me do a better Java wrapper for BOINC... Stay tuned! (but don't hold your breath either; it's the holidays!)


Meanwhile, I suggest you start by reading BOINC wiki and setting up a server with a “hello world” application; and if you have any trouble, ask a specific question about your trouble either here or in the boinc_projects mailing list.

(Of course, payin’ me to install the server for you is also an option ;) but I can't guarantee anything; not even my mere availability at this time of the year)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文