沙盒环境实施 [英] sandboxed environment implementation

查看:179
本文介绍了沙盒环境实施的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想开发一个像沙箱这样的虚拟环境.
我不知道其背后的概念.谁能给我一些概念,它是如何工作的,以及如何实现.

预先感谢.

Hello All,

I want to develop a virtual environment like sandbox.
I don''t know the concept behind this. can any one please give me some concepts, how this is working, and how to implement.

Thanks in advance.

推荐答案

沙箱只是一个虚拟化环境,运行某种代码,您可以在其中仔细控制代码可以访问的资源.

可以认为它是一台模拟计算机...

通常,环境会将代码作为伪代码或某种形式的机器或汇编语言运行.可能会编译诸如python,java,C/C ++等语言来运行环境支持的指令集.

您可以轻松地从许多当前的脚本语言构建沙箱.

如果脚本语言支持嵌入,则可以构造一个沙箱以使其在其中运行.

一些简单的开始,可能是Python和TCL/TK.
A sandbox is simply a virtualized environment, running some sort of code, in which you carefully control the resources that the code can access.

It can be thought of as a simulated computer...

Often the environment will run code as pseudocode, or a form of machine or assemble language. Languages such as python, java, C/C++ etc might be compiled to run the instruction set supported by the environment.

You can build a sandbox from many of the current scripting languages fairly easily.

If the scripting language supports embedding, then you can construct a sandbox for it to run in.

Some simple ones to start with, might be Python and TCL/TK.


这篇关于沙盒环境实施的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆